From: Richard W.M. Jones Date: Tue, 29 Nov 2011 18:20:05 +0000 (+0000) Subject: python: Memory leak: Free roots array along handle close path. X-Git-Tag: 1.14.5~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=3aa164d5283d13085a2adc9579b19068ef065648;p=libguestfs.git python: Memory leak: Free roots array along handle close path. (cherry picked from commit e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c) --- diff --git a/python/guestfs-py-byhand.c b/python/guestfs-py-byhand.c index 1756963..53c2e98 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;