2007-08-17 Michael Snyder <msnyder@access-company.com>

* c-exp.y (parse_number): Memory leak.
This commit is contained in:
Michael Snyder 2007-08-17 23:27:42 +00:00
parent 1f20ed9160
commit 348038cd50
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2007-08-17 Michael Snyder <msnyder@access-company.com>
* c-exp.y (parse_number): Memory leak.
* completer.c (location_completer): Must free 'fn_list', except
in the one case where it is returned (as 'list').

View File

@ -1096,9 +1096,13 @@ parse_number (p, len, parsed_float, putithere)
putithere->typed_val_float.type =
builtin_type (current_gdbarch)->builtin_long_double;
else
return ERROR;
{
free (s);
return ERROR;
}
}
free (s);
return FLOAT;
}