aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index b67c7e1..6318955 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -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;
}