From: Sergey Poznyakoff Date: Sun, 31 Aug 2003 22:45:58 +0000 (+0000) Subject: (destroy_stat): New function. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=db783659b0cc4bf162bec41685be23f72f25f721;p=chaz%2Ftar (destroy_stat): New function. --- diff --git a/src/tar.c b/src/tar.c index c460e5c..fc7cea5 100644 --- 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)); +}