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/cli/cli-cmds.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r-- | gdb/cli/cli-cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 557e1fd..edf9b4d 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -227,7 +227,7 @@ complete_command (char *arg, int from_tty) completion = line_completion_function (arg, ++i, arg, argpoint)) { printf_unfiltered ("%s\n", completion); - free (completion); + xfree (completion); } } @@ -287,7 +287,7 @@ cd_command (char *dir, int from_tty) error_no_arg ("new working directory"); dir = tilde_expand (dir); - make_cleanup (free, dir); + make_cleanup (xfree, dir); if (chdir (dir) < 0) perror_with_name (dir); @@ -321,7 +321,7 @@ cd_command (char *dir, int from_tty) current_directory = concat (current_directory, dir, NULL); else current_directory = concat (current_directory, SLASH_STRING, dir, NULL); - free (dir); + xfree (dir); } /* Now simplify any occurrences of `.' and `..' in the pathname. */ @@ -383,7 +383,7 @@ source_command (char *args, int from_tty) } file = tilde_expand (file); - old_cleanups = make_cleanup (free, file); + old_cleanups = make_cleanup (xfree, file); stream = fopen (file, FOPEN_RT); if (!stream) |