[patch] memleak in catch catch
Aleksandar Ristovski
aristovski@qnx.com
Tue Apr 29 20:37:00 GMT 2008
Hello,
A trivial patch to fix memory leak in handle_gnu_v3_exceptions... this is probably going to change soon to allow setting catchpoints before program starts, but still.
Thanks,
Aleksandar Ristovski
QNX Software Systems
ChangeLog:
* breakpoint.c (struct decode_line_args): New structure for passing
arguments to decode_line_1.
(call_decode_line_1): New function.
(handle_gnu_v3_exceptions): Call decode_line_1 via catch_exception and
the new call_decode_line_1 function. Free allocated string on failure.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: breakpoint.c.memleak.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080429/418f1a2e/attachment.ksh>
More information about the Gdb-patches
mailing list