diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-29 18:20:05 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-29 19:44:36 +0000 |
commit | e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c (patch) | |
tree | 62c612bd01685a871cfcd9b64611f4ede16ba8d4 | |
parent | 00c9755ee3bea98968acea47bac858db94f7fbe2 (diff) | |
download | libguestfs-e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c.tar.gz libguestfs-e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c.tar.xz libguestfs-e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c.zip |
python: Memory leak: Free roots array along handle close path.
-rw-r--r-- | python/guestfs-py-byhand.c | 1 |
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; |