summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-07 08:40:00 +0000
committerJim Meyering <jim@meyering.net>2001-10-07 08:40:00 +0000
commit3cff443b59e8b15a4689dd1bbe890a914b6c2b62 (patch)
treed1e7c8a209f8e16e40b067f74212e4f7352ce5bd
parent38e11fdc5d24225041deb8c8b0d131b04cb17761 (diff)
downloadcoreutils-3cff443b59e8b15a4689dd1bbe890a914b6c2b62.tar.xz
(copy_dir): Now that remember_copied copies the
file name, free the temporary `dst_path' allocated here.
-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;