]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_internal): Plug a small leak.
authorJim Meyering <jim@meyering.net>
Wed, 13 May 1998 03:47:02 +0000 (03:47 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 13 May 1998 03:47:02 +0000 (03:47 +0000)
src/copy.c

index 0b0036b999d6b3ae0564dfb5116e5c2079ef47ab..d43d686dc9f5f18283e7bfeb3c0983121c771d47 100644 (file)
@@ -507,6 +507,7 @@ copy_internal (const char *src_path, const char *dst_path,
                 ? _("backing up `%s' would destroy source;  `%s' not moved")
                 : _("backing up `%s' would destroy source;  `%s' not copied"));
                  error (0, 0, fmt, dst_path, src_path);
+                 free (tmp_backup);
                  return 1;
                }