]> Dogcows Code - chaz/tar/commitdiff
(destroy_stat): New function.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:45:58 +0000 (22:45 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:45:58 +0000 (22:45 +0000)
src/tar.c

index c460e5c2e9daca14c73d05b4d7460b2d44bac69e..fc7cea5dcc041518bde153d830c8f4d8323cd03c 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1400,3 +1400,14 @@ main (int argc, char **argv)
     exit_status = TAREXIT_FAILURE;
   exit (exit_status);
 }
+
+void
+destroy_stat (struct tar_stat_info *st)
+{
+  free (st->orig_file_name);
+  free (st->file_name);
+  free (st->link_name);
+  free (st->uname);
+  free (st->gname);
+  memset (st, 0, sizeof (*st));
+}
This page took 0.030693 seconds and 4 git commands to generate.