winedump: Added a missing free().

This commit is contained in:
Marcus Meissner 2007-02-16 17:28:59 +01:00 committed by Alexandre Julliard
parent f4d7b4444c
commit 82026ecd65
1 changed files with 3 additions and 1 deletions

View File

@ -349,8 +349,10 @@ int symbol_demangle (parsed_symbol *sym)
else else
{ {
INIT_CT (ct); INIT_CT (ct);
if (!demangle_datatype (&name, &ct, sym)) if (!demangle_datatype (&name, &ct, sym)) {
free (function_name);
return -1; return -1;
}
sym->return_text = ct.expression; sym->return_text = ct.expression;
sym->return_type = get_type_constant(ct.dest_type, ct.flags); sym->return_type = get_type_constant(ct.dest_type, ct.flags);
ct.expression = NULL; ct.expression = NULL;