[RFA] Fix two memory leaks
Keith Seitz
keiths@redhat.com
Tue Oct 23 21:22:00 GMT 2012
Hi,
While testing some recent work, I noticed that valgrind was reporting
two memory leaks related to linespec parsing/SaL resolution.
The following patch fixes both leaks.
Keith
ChangeLog
2012-10-23 Keith Seitz <keiths@redhat.com>
* breakpoint.c (clear_command): Add cleanup for
sals.sals if an argument is given.
* linespec.c (parse_linespec): Do cleanups after
parsing a convenience variable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mem-leaks.patch
Type: text/x-patch
Size: 1281 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20121023/3f0026d6/attachment.bin>
More information about the Gdb-patches
mailing list