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 committed 2022-01-27 13:04:14 -08:00
1 parent f19bc026b3
commit fbc7958b36
1 file changed
-2
-2
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;
}