[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/python: Py_INCREF(Py_None) when returing Py_None



# HG changeset patch
# User Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
# Date 1331659187 0
# Node ID 6ced0ed954d60345c6e8e7ba330a305a2c750444
# Parent  6459346c03f54e101f5f9002d9058a95cc8a90d5
tools/python: Py_INCREF(Py_None) when returing Py_None

Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 6459346c03f5 -r 6ced0ed954d6 tools/python/xen/lowlevel/xl/xl.c
--- a/tools/python/xen/lowlevel/xl/xl.c Tue Mar 13 17:11:09 2012 +0000
+++ b/tools/python/xen/lowlevel/xl/xl.c Tue Mar 13 17:19:47 2012 +0000
@@ -408,6 +408,8 @@
     domname = libxl_domid_to_name(self->ctx, domid);
     if (domname)
         ret = PyString_FromString(domname);
+       else
+               Py_INCREF(Py_None);
     free(domname);
 
     return ret;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.