diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-04-14 21:54:33 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-04-14 21:54:33 +0000 |
commit | 8ea5dfdf09ef031b83a6a04376cfb2361bac8aa3 (patch) | |
tree | c5b0309824410a0509438e71472dc402b274ce78 /gdb/c-lang.c | |
parent | 88c15c34004057ccff9993d517b4df5ba1a0e6f8 (diff) | |
download | gdb-8ea5dfdf09ef031b83a6a04376cfb2361bac8aa3.zip gdb-8ea5dfdf09ef031b83a6a04376cfb2361bac8aa3.tar.gz gdb-8ea5dfdf09ef031b83a6a04376cfb2361bac8aa3.tar.bz2 |
gdb/
* c-lang.c (c_get_string): Fix xfree crash on a failed string read.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 0c9e4f8..e18f173 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -657,7 +657,7 @@ c_get_string (struct value *value, gdb_byte **buffer, int *length, buffer, length); if (err) { - xfree (buffer); + xfree (*buffer); error (_("Error reading string from inferior: %s"), safe_strerror (err)); } |