diff options
Diffstat (limited to 'systemd/_daemon.c')
-rw-r--r-- | systemd/_daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/systemd/_daemon.c b/systemd/_daemon.c index fe6d890..f41095a 100644 --- a/systemd/_daemon.c +++ b/systemd/_daemon.c @@ -123,11 +123,11 @@ static PyObject* notify(PyObject *self, PyObject *args, PyObject *keywds) { return NULL; arr = PyMem_NEW(int, len); - if (!fds) + if (!arr) return NULL; for (i = 0; i < len; i++) { - PyObject *item = PySequence_GetItem(fds, i); + _cleanup_Py_DECREF_ PyObject *item = PySequence_GetItem(fds, i); if (!item) return NULL; |