mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
gdb/
* c-lang.c (c_get_string): Fix xfree crash on a failed string read.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2009-04-14 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* c-lang.c (c_get_string): Fix xfree crash on a failed string read.
|
||||||
|
|
||||||
2009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
|
2009-04-14 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
ARI fix: sprintf rule.
|
ARI fix: sprintf rule.
|
||||||
|
@ -657,7 +657,7 @@ c_get_string (struct value *value, gdb_byte **buffer, int *length,
|
|||||||
buffer, length);
|
buffer, length);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
xfree (buffer);
|
xfree (*buffer);
|
||||||
error (_("Error reading string from inferior: %s"),
|
error (_("Error reading string from inferior: %s"),
|
||||||
safe_strerror (err));
|
safe_strerror (err));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user