This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] python/py-breakpoint.c, fix memory leak
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 28 Feb 2011 08:56:21 -0700
- Subject: Re: [RFA] python/py-breakpoint.c, fix memory leak
- References: <4D6ADBC0.9010807@vmware.com>
>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:
Michael> 2011-02-27 Michael Snyder <msnyder@vmware.com>
Michael> * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
This is good but not sufficient.
I think you also need to install a cleanup for cmdstr after it is
assigned.
Tom