summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-13 03:47:02 +0000
committerJim Meyering <jim@meyering.net>1998-05-13 03:47:02 +0000
commit15aac9a45d9115193fbdfcc679a501069045a40f (patch)
tree31f259766a054b0ab5b95680f444c09ca83577e7 /src
parent43fd950ef9d5c459a579ae123666b41b556a9b4b (diff)
downloadcoreutils-15aac9a45d9115193fbdfcc679a501069045a40f.tar.xz
(copy_internal): Plug a small leak.
Diffstat (limited to 'src')
-rw-r--r--src/copy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c
index 0b0036b99..d43d686dc 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -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;
}