[patch]: Fix memory leak of c-exp.y

teawater teawater@gmail.com
Sat Jun 21 17:21:00 GMT 2008


c-exp.y has a memory leak in function parse_number. char *s is malloc
at line 1211.
There are returns at lines 1137, 1147, and 1157 without calling free.
This patch is for the GDB CVS version.

ChangeLog:
	* gdb/c-exp.y: Fix memory leak of function parse_number
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c-exp_leak.patch
Type: text/x-diff
Size: 805 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080621/b57d7518/attachment.bin>


More information about the Gdb-patches mailing list