mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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:
1 parent
f19bc026b3
commit
fbc7958b36
1 file changed
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user