From: Paul Eggert Date: Fri, 1 Nov 2024 16:40:36 +0000 (-0700) Subject: Remove name_term X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61a978f6d498db9151de801c88c6d01eef7bb7d9;p=thirdparty%2Ftar.git Remove name_term It’s never actually called. * src/names.c (name_term): Remove. All uses removed. --- diff --git a/src/common.h b/src/common.h index ba432771..95004597 100644 --- a/src/common.h +++ b/src/common.h @@ -782,7 +782,6 @@ int uname_to_uid (char const *uname, uid_t *puid); void name_init (void); void name_add_name (const char *name); -void name_term (void); char const *name_next (bool); void name_gather (void); struct name *addname (char const *, idx_t, bool, struct name *); diff --git a/src/names.c b/src/names.c index 5a1873fc..516b0cef 100644 --- a/src/names.c +++ b/src/names.c @@ -878,12 +878,6 @@ name_init (void) name_buffer_length = NAME_FIELD_SIZE; name_list_adjust (); } - -void -name_term (void) -{ - free (name_buffer); -} /* Prevent recursive inclusion of the same file */ struct file_id_list diff --git a/src/tar.c b/src/tar.c index 3d965dfd..e096d156 100644 --- a/src/tar.c +++ b/src/tar.c @@ -2943,7 +2943,6 @@ main (int argc, char **argv) { free (archive_name_array); xattrs_clear_setup (); - name_term (); } if (exit_status == TAREXIT_FAILURE)