git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00c9755
)
python: Memory leak: Free roots array along handle close path.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 29 Nov 2011 18:20:05 +0000
(18:20 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 29 Nov 2011 19:44:36 +0000
(19:44 +0000)
python/guestfs-py-byhand.c
patch
|
blob
|
history
diff --git
a/python/guestfs-py-byhand.c
b/python/guestfs-py-byhand.c
index
1756963
..
53c2e98
100644
(file)
--- 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;