[patch] Fix using_directive memory leak pr 11236

Tom Tromey tromey@redhat.com
Tue Mar 9 18:26:00 GMT 2010


>>>>> "Sami" == Sami Wagiaalla <swagiaal@redhat.com> writes:

Sami>    2010-03-09  Sami Wagiaalla  <swagiaal@redhat.com>
Sami>     	PR C++/11236:
Sami>    	* cp-namespace.c (cp_add_using): Deleted.
Sami>    	(cp_add_using_directive): Use obstack allocations.
Sami>    	Merged the function cp_add_using into this one.
Sami>    	Added 'struct obstack *' argument.
Sami>    	(cp_scan_for_anonymous_namespaces): Updated.
Sami>    	* cp-support.h: Updated.
Sami>    	* dwarf2read.c (read_import_statement): Updated.
Sami>    	(read_namespace): Updated.

This is ok, thanks.

Tom



More information about the Gdb-patches mailing list