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 | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/maint.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index c2fc9e1..aa62e94 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -141,7 +141,7 @@ maintenance_demangle (char *args, int from_tty) if (demangled != NULL) { printf_unfiltered ("%s\n", demangled); - free (demangled); + xfree (demangled); } else { @@ -444,7 +444,7 @@ maintenance_do_deprecate (char *text, int deprecate) { if (alias->flags & MALLOCED_REPLACEMENT) - free (alias->replacement); + xfree (alias->replacement); if (deprecate) alias->flags |= (DEPRECATED_WARN_USER | CMD_DEPRECATED); @@ -457,7 +457,7 @@ maintenance_do_deprecate (char *text, int deprecate) else if (cmd) { if (cmd->flags & MALLOCED_REPLACEMENT) - free (cmd->replacement); + xfree (cmd->replacement); if (deprecate) cmd->flags |= (DEPRECATED_WARN_USER | CMD_DEPRECATED); |