Update of /cvsroot/ups/ups/ups
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv334
Modified Files:
ao_symscan.c
Log Message:
When we don't run the demangler because the compiler isn't known make
sure the copy of the name we make is allocated from the right pool.
Index: ao_symscan.c
===================================================================
RCS file: /cvsroot/ups/ups/ups/ao_symscan.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** ao_symscan.c 14 Feb 2007 14:59:51 -0000 1.9
--- ao_symscan.c 29 Jul 2008 14:25:10 -0000 1.10
***************
*** 2305,2309 ****
ct = ao_compiler(fil, FALSE, CT_UNKNOWN);
if (ct == CT_UNKNOWN)
! *ptr = strdup(name);
else
demangle_name(name, len, alloc_id, ptr, func, ct);
--- 2305,2309 ----
ct = ao_compiler(fil, FALSE, CT_UNKNOWN);
if (ct == CT_UNKNOWN)
! *ptr = alloc_strdup(alloc_id, name);
else
demangle_name(name, len, alloc_id, ptr, func, ct);
|