1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-09 21:53:55 +02:00

copy: remove unnecessary ‘free’

* src/copy.c (copy_reg): Remove a ‘free’ call that does nothing
because its argument is always a null pointer, starting with
2007-11-1608:31:15Z!jim@meyering.net.
This commit is contained in:
Paul Eggert
2022-01-23 11:24:35 -08:00
parent f19bc026b3
commit fbc7958b36

View File

@@ -1078,7 +1078,6 @@ copy_reg (char const *src_name, char const *dst_name,
{
char *buf;
char *buf_alloc = NULL;
char *name_alloc = NULL;
int dest_desc;
int dest_errno;
int source_desc;
@@ -1459,7 +1458,6 @@ close_src_desc:
}
free (buf_alloc);
free (name_alloc);
return return_val;
}