diff options
author | Jim Meyering <jim@meyering.net> | 1998-11-30 02:01:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-11-30 02:01:18 +0000 |
commit | 75d5ed8b58a0fddebd2e971695c0157effbd43aa (patch) | |
tree | 47fdeef0af11d5ea82b30d19b5b94cc996153692 | |
parent | b9c6c84a8c551943453fb5609eaea66d25d78b63 (diff) | |
download | coreutils-75d5ed8b58a0fddebd2e971695c0157effbd43aa.tar.xz |
(movefile): Don't free new_dest.
Bob McCracken reported that mv couldn't handle certain combinations
of hard linked source files.
-rw-r--r-- | src/mv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -308,7 +308,9 @@ movefile (char *source, char *dest, int dest_is_dir, const struct cp_options *x) if (new_dest == NULL) error (1, 0, _("virtual memory exhausted")); fail = do_move (source, new_dest, x); - free (new_dest); + + /* Do not free new_dest. It may have been squirelled away by + the remember_copied function. */ } else { |