Bug 13309

Summary: (cpychecker) Memory leak in gdb/python/py-inferior.c: gdbpy_inferiors()
Product: gdb Reporter: Dave Malcolm <dmalcolm>
Component: pythonAssignee: Phil Muldoon <pmuldoon>
Status: RESOLVED FIXED    
Severity: normal CC: pmuldoon
Priority: P2    
Version: HEAD   
Target Milestone: 7.4   
Host: Target:
Build: Last reconfirmed:
Attachments: HTML report showing the execution path that leaks memory

Description Dave Malcolm 2011-10-17 20:08:32 UTC
Created attachment 6011 [details]
HTML report showing the execution path that leaks memory

Analogous to bug 13308, but affecting gdb.inferiors()
Comment 1 Sourceware Commits 2011-10-20 13:34:21 UTC
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
Comment 2 Phil Muldoon 2011-10-20 13:38:00 UTC
Fixed and committed.