diff options
author | Jim Meyering <jim@meyering.net> | 2001-10-18 08:13:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-10-18 08:13:28 +0000 |
commit | 493d1adca128114d79876b00d7c0ac2ef16ed228 (patch) | |
tree | 533b4697469c9b64c85e58ea582a51e9ccc18d8c /src | |
parent | 6a03579aa48e4ba536848a0e75dc185cc930d4bd (diff) | |
download | coreutils-493d1adca128114d79876b00d7c0ac2ef16ed228.tar.xz |
(movefile): Now that remember_copied xstrdup's the file name, free `new_dest'.
Diffstat (limited to 'src')
-rw-r--r-- | src/mv.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -307,9 +307,7 @@ movefile (char *source, char *dest, int dest_is_dir, if (new_dest == NULL) xalloc_die (); fail = do_move (source, new_dest, x); - - /* Do not free new_dest. It may have been squirreled away by - the remember_copied function. */ + free (new_dest); } else { |