[RFA] Cleanup some memory leaks

Keith Seitz keiths@redhat.com
Wed May 23 19:02:00 GMT 2012


Hi,

Recently, I've been checking for memory leaks in some code, and I ran 
across these (reported by valgrind).

Okay?
Keith

ChangeLog
2012-05-23  Keith Seitz  <keiths@redhat.com>

	* linespec.c (decode_objc): Add cleanup to free
	INFO.FILE_SYMTABS.
	(find_linespec_symbols): Add cleanup to free CLASSES.
	* symfile.c (find_separate_debug_file_by_debuglink): Add
	cleanup to free DEBUGLINK.
	* ui-out.c (clear_header_list): No need to check if
	HEADER_NEXT.COLHDR is NULL.
	Free HEADER_NEXT.COL_NAME.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memleaks.patch
Type: text/x-patch
Size: 2269 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120523/9baaa700/attachment.bin>


More information about the Gdb-patches mailing list