From b564762ef5f7f6915f0b0fcc55cb42d3f4d171b5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 18 Oct 2001 07:44:41 +0000 Subject: Plug a leak. (remember_copied): Use src_to_dest_free to free the entry we couldn't insert. --- src/cp-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2