[pygtk] Possible memory leak in pygi-invoke.c
Damien Caliste
damien.caliste at cea.fr
Fri Sep 3 23:38:46 WST 2010
Hello,
Using PyGI in my code, I notice that each function call costs memory
that is not released after. In my opinion,
the function _wrap_g_function_info_invoke() does not free memory
allocated in the structure "state" in case of working status, while
_free_invocation_state() is indeed call in case of error. I suggest to
call the _free routine before the return line, as done in the attached
patch.
What do you think ?
Damien.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memleak.patch
Type: text/x-patch
Size: 320 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20100903/916965f9/attachment.bin>
More information about the pygtk
mailing list