From fbc7958b36dd5bbc56f5cb4368abd6734ebff0a3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 23 Jan 2022 11:24:35 -0800 Subject: [PATCH] =?utf8?q?copy:=20remove=20unnecessary=20=E2=80=98free?= =?utf8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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. --- src/copy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/copy.c b/src/copy.c index 753d6ccd9..b2e3cb1f7 100644 --- a/src/copy.c +++ b/src/copy.c @@ -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; } -- 2.11.4.GIT