(destroy_stat): New function.

This commit is contained in:
Sergey Poznyakoff
2003-08-31 22:45:58 +00:00
parent d858a433c8
commit db783659b0

View File

@@ -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));
}