projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e11fd
)
(copy_dir): Now that remember_copied copies the
author
Jim Meyering
<jim@meyering.net>
Sun, 7 Oct 2001 08:40:00 +0000
(08:40 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 7 Oct 2001 08:40:00 +0000
(08:40 +0000)
file name, free the temporary `dst_path' allocated here.
src/copy.c
patch
|
blob
|
history
diff --git
a/src/copy.c
b/src/copy.c
index
0492969
..
715edf1
100644
(file)
--- 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;