summaryrefslogtreecommitdiff
path: root/src/cp-hash.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-18 07:44:41 +0000
committerJim Meyering <jim@meyering.net>2001-10-18 07:44:41 +0000
commitb564762ef5f7f6915f0b0fcc55cb42d3f4d171b5 (patch)
tree8aac117f3b7ef20899e2e4533307452c298a5346 /src/cp-hash.c
parenta7870f99972b3cb0a48f7d35651adac3ccc0ac0b (diff)
downloadcoreutils-b564762ef5f7f6915f0b0fcc55cb42d3f4d171b5.tar.xz
Plug a leak.
(remember_copied): Use src_to_dest_free to free the entry we couldn't insert.
Diffstat (limited to 'src/cp-hash.c')
-rw-r--r--src/cp-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cp-hash.c b/src/cp-hash.c
index b245994ba..85182ad6d 100644
--- a/src/cp-hash.c
+++ b/src/cp-hash.c
@@ -128,7 +128,7 @@ remember_copied (const char *name, ino_t ino, dev_t dev)
return the `name' from the table entry. */
if (ent_from_table != ent)
{
- free (ent);
+ src_to_dest_free (ent);
return (char *) ent_from_table->name;
}