python-libxl: Py_INCREF(Py_None) when returing Py_None
PATCH 1/1 python-libxl: Py_INCREF(Py_None) when returing Py_None
# HG changeset patch
# User Marek Marczykowski <[email protected]> # Date 1331080262 -3600
# Node ID fbb9214867da594448499c0834f3f906f150f8c5 # Parent 8964c223836c2889364aa75cb1a662ff5eacd5d8
python-libxl: Py_INCREF(Py_None) when returing Py_None
Signed-off-by Marek Marczykowski <[email protected]>
tools/python/xen/lowlevel/xl/xl.c +2 -0
@@ -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;
Marek Marczykowski writes ("[Xen-devel] [PATCH] python-libxl: Py_INCREF(Py_None) when returing Py_None"):
Quoted 3 lines
python-libxl:
Py_INCREF(Py_None)when returingPy_NoneSigned-off-by Marek Marczykowski <[email protected]>
Thanks.
Acked-by Ian Jackson <[email protected]>
Committed-by Ian Jackson <[email protected]>
Grumble. The Python people really do like making life difficult, don't they ?
Ian.