summaryrefslogtreecommitdiffstats
path: root/python/guestfs-py-byhand.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-29 18:20:05 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-12-02 08:37:04 +0000
commit3aa164d5283d13085a2adc9579b19068ef065648 (patch)
tree15d26cc64a195f5f6a428f050a46293f998e805e /python/guestfs-py-byhand.c
parent8b886497a1fe2009ed924d519b0dd83a6a30712b (diff)
downloadlibguestfs-3aa164d5283d13085a2adc9579b19068ef065648.tar.gz
libguestfs-3aa164d5283d13085a2adc9579b19068ef065648.tar.xz
libguestfs-3aa164d5283d13085a2adc9579b19068ef065648.zip
python: Memory leak: Free roots array along handle close path.
(cherry picked from commit e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c)
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;