* [PATCH v2] python-libxl: Py_INCREF(Py_None) when returing Py_None
@ 2012-03-07 0:31 Marek Marczykowski
0 siblings, 0 replies; only message in thread
From: Marek Marczykowski @ 2012-03-07 0:31 UTC (permalink / raw)
To: xen-devel; +Cc: marmarek
fixed indent.
# HG changeset patch
# User Marek Marczykowski <marmarek@invisiblethingslab.com>
# Date 1331080262 -3600
# Node ID fbb9214867da594448499c0834f3f906f150f8c5
# Parent 8964c223836c2889364aa75cb1a662ff5eacd5d8
python-libxl: Py_INCREF(Py_None) when returing Py_None
Signed-off-by: Marek Marczykowski <marmarek@invisiblethingslab.com>
diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c
--- a/tools/python/xen/lowlevel/xl/xl.c
+++ b/tools/python/xen/lowlevel/xl/xl.c
@@ -408,6 +408,8 @@ static PyObject *pyxl_domid_to_name(XlOb
domname = libxl_domid_to_name(self->ctx, domid);
if (domname)
ret = PyString_FromString(domname);
+ else
+ Py_INCREF(Py_None);
free(domname);
return ret;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-07 0:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 0:31 [PATCH v2] python-libxl: Py_INCREF(Py_None) when returing Py_None Marek Marczykowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).