]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Plug a leak.
authorJim Meyering <jim@meyering.net>
Thu, 18 Oct 2001 07:44:41 +0000 (07:44 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 18 Oct 2001 07:44:41 +0000 (07:44 +0000)
(remember_copied): Use src_to_dest_free to free the entry we couldn't insert.

src/cp-hash.c

index b245994ba2a0451a6330d5810af8036c2fd50db1..85182ad6d620db6c867466988d66fb9643a96b22 100644 (file)
@@ -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;
     }