Created attachment 6010 [details] HTML report showing the execution path that leaks memory I'm experimenting with building GDB using a GCC plugin that adds a pass to check correct reference-count handling in CPython code (cpychecker); see https://fedorahosted.org/gcc-python-plugin/ I'm attaching an error report concerning: gdb/python/py-breakpoint.c: gdbpy_breakpoints gdb.breakpoints() appears to leak the list of breakpoints each time it is called.
CVSROOT: /cvs/src Module name: src Changes by: pmuldoon@sourceware.org 2011-10-20 13:34:17 Modified files: gdb : ChangeLog gdb/python : py-breakpoint.c py-inferior.c Log message: 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> PR python/13308 PR python/13309 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference leak. * python/py-inferior.c (gdbpy_inferiors): Fix List reference leak. Delete unused variables. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13445&r2=1.13446 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-breakpoint.c.diff?cvsroot=src&r1=1.26&r2=1.27 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-inferior.c.diff?cvsroot=src&r1=1.15&r2=1.16
Fixed and committed.