diff -r 6472342c8ab0 tools/python/xen/lowlevel/xs/xs.c --- a/tools/python/xen/lowlevel/xs/xs.c Wed Sep 30 08:51:21 2009 +0100 +++ b/tools/python/xen/lowlevel/xs/xs.c Wed Sep 30 14:08:27 2009 +0200 @@ -324,6 +324,7 @@ static PyObject *xspy_set_permissions(Xs xs_transaction_t th; char *thstr; + PyObject *ret = NULL; if (!xh) goto exit; @@ -380,14 +381,13 @@ static PyObject *xspy_set_permissions(Xs goto exit; } - free(xsperms); Py_INCREF(Py_None); - return Py_None; + ret = Py_None; exit: Py_XDECREF(tuple0); free(xsperms); - return NULL; + return ret; } #define xspy_watch_doc "\n" \