summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/copy.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/copy.c b/src/copy.c
index 04929693b..715edf1f3 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -187,10 +187,7 @@ copy_dir (const char *src_path_in, const char *dst_path_in, int new_dst,
&local_copy_into_self, NULL);
*copy_into_self |= local_copy_into_self;
- /* Free the memory for `src_path'. The memory for `dst_path'
- cannot be deallocated, since it is used to create multiple
- hard links. */
-
+ free (dst_path);
free (src_path);
namep += strlen (namep) + 1;