diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | 7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch) | |
tree | 20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/f-lang.c | |
parent | eac388f33554805a5765a2836926311f77cd8d79 (diff) | |
download | gdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r-- | gdb/f-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c index b61af1d3c50..c466c51ac5f 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -635,7 +635,7 @@ add_common_block (char *name, CORE_ADDR offset, int secnum, char *func_stab) STREQ (name, BLANK_COMMON_NAME_MF77)) { - free (name); + xfree (name); name = alloca (strlen (BLANK_COMMON_NAME_LOCAL) + 1); strcpy (name, BLANK_COMMON_NAME_LOCAL); } @@ -809,7 +809,7 @@ patch_all_commons_by_name (char *name, CORE_ADDR offset, int secnum) if ((STREQ (name, BLANK_COMMON_NAME_ORIGINAL)) || (STREQ (name, BLANK_COMMON_NAME_MF77))) { - free (name); + xfree (name); name = alloca (strlen (BLANK_COMMON_NAME_LOCAL) + 1); strcpy (name, BLANK_COMMON_NAME_LOCAL); } @@ -875,7 +875,7 @@ clear_bf_list (void) while (tmp != NULL) { next = tmp->next; - free (tmp); + xfree (tmp); tmp = next; } saved_bf_list = NULL; @@ -946,7 +946,7 @@ clear_function_list (void) while (tmp != NULL) { next = tmp->next; - free (tmp); + xfree (tmp); tmp = next; } |