diff options
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/xen/lowlevel/xl/xl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/python/xen/lowlevel/xl/xl.c b/tools/python/xen/lowlevel/xl/xl.c index 74c8c887e5..8ca429a3c2 100644 --- 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(XlObject *self, PyObject *args) domname = libxl_domid_to_name(self->ctx, domid); if (domname) ret = PyString_FromString(domname); + else + Py_INCREF(Py_None); free(domname); return ret; |