[patch] c-common.c: Fix memory leak.
Kazu Hirata
kazu@cs.umass.edu
Sat Dec 11 15:58:00 GMT 2004
Hi Nathan,
> > Consider the "if" statement shown in the patch. If we are returning
> > cstr.txt, nobody will ever reference namep, which is allocated via
> > XVECNEW a few lines up.
> ^^^^^^^
> >
> > The patch solves this problem by freeing namep with XDELETEVEC.
> ^^^^^^^^^^
> is it really the case that our new shiny C++-safe macros are so
> inconsistently named?
Are you talking about where VEC appears in the macro names? If so,
yes, they are inconsistently named.
Kazu Hirata
More information about the Gcc-patches
mailing list