summaryrefslogtreecommitdiffstats
path: root/python/guestfs-py-byhand.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/guestfs-py-byhand.c')
-rw-r--r--python/guestfs-py-byhand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/guestfs-py-byhand.c b/python/guestfs-py-byhand.c
index 1756963a..53c2e98c 100644
--- a/python/guestfs-py-byhand.c
+++ b/python/guestfs-py-byhand.c
@@ -76,6 +76,7 @@ py_guestfs_close (PyObject *self, PyObject *args)
for (i = 0; i < len; ++i)
Py_XDECREF (callbacks[i]);
+ free (callbacks);
Py_INCREF (Py_None);
return Py_None;