summaryrefslogtreecommitdiff
path: root/src/mv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mv.c')
-rw-r--r--src/mv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mv.c b/src/mv.c
index 927b14ece..f235dca9c 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -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
{