]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Remove name_term
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Nov 2024 16:40:36 +0000 (09:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Nov 2024 06:47:23 +0000 (23:47 -0700)
It’s never actually called.
* src/names.c (name_term): Remove.  All uses removed.

src/common.h
src/names.c
src/tar.c

index ba432771788e775e653be1760326d78fc869b80d..95004597bef41f1b27a0bc54bcf584be4694035a 100644 (file)
@@ -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 *);
index 5a1873fcfad3796dc08db5a942b90312a3543bad..516b0cef307735265d2994ad7021639348d039ba 100644 (file)
@@ -878,12 +878,6 @@ name_init (void)
   name_buffer_length = NAME_FIELD_SIZE;
   name_list_adjust ();
 }
-
-void
-name_term (void)
-{
-  free (name_buffer);
-}
 \f
 /* Prevent recursive inclusion of the same file */
 struct file_id_list
index 3d965dfddd7fdab6eeae6b8e0be3f45c465b8da5..e096d156585b85cf9e8a5b8f3da5df304f3b786b 100644 (file)
--- 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)