libiberty/cplus-dem.c, ada-demangle: plug memory leak.

Tom Tromey tromey@redhat.com
Fri Mar 4 18:37:00 GMT 2011


Michael> How come 'xfree' in gdb/utils.c still checks for null?

I don't know, but I assume just because nobody has bothered to remove
the check.  I think we also still have code doing `if (x) xfree (x);',
which is kind of doubly wrong :)

Tom



More information about the Gdb-patches mailing list