mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
* language.c (set_lang_str): Do not call `free' for a null pointer.
(set_type_str, set_range_str): Ditto.
This commit is contained in:
parent
d5afc56eb1
commit
ccdaf797f7
@ -1,3 +1,8 @@
|
||||
Fri Mar 17 11:06:59 2000 Philippe De Muyter <phdm@macqel.be>
|
||||
|
||||
* language.c (set_lang_str): Do not call `free' for a null pointer.
|
||||
(set_type_str, set_range_str): Ditto.
|
||||
|
||||
2000-03-16 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
|
||||
|
@ -394,7 +394,8 @@ set_lang_str ()
|
||||
{
|
||||
char *prefix = "";
|
||||
|
||||
free (language);
|
||||
if (language)
|
||||
free (language);
|
||||
if (language_mode == language_mode_auto)
|
||||
prefix = "auto; currently ";
|
||||
|
||||
@ -406,7 +407,8 @@ set_type_str ()
|
||||
{
|
||||
char *tmp = NULL, *prefix = "";
|
||||
|
||||
free (type);
|
||||
if (type)
|
||||
free (type);
|
||||
if (type_mode == type_mode_auto)
|
||||
prefix = "auto; currently ";
|
||||
|
||||
@ -451,7 +453,8 @@ set_range_str ()
|
||||
error ("Unrecognized range check setting.");
|
||||
}
|
||||
|
||||
free (range);
|
||||
if (range)
|
||||
free (range);
|
||||
range = concat (pref, tmp, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user