From: Jim Meyering Date: Thu, 18 Oct 2001 07:44:41 +0000 (+0000) Subject: Plug a leak. X-Git-Tag: FILEUTILS-4_1_1~113 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b564762ef5f7f6915f0b0fcc55cb42d3f4d171b5;p=thirdparty%2Fcoreutils.git Plug a leak. (remember_copied): Use src_to_dest_free to free the entry we couldn't insert. --- diff --git a/src/cp-hash.c b/src/cp-hash.c index b245994ba2..85182ad6d6 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; }