Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined.

This commit is contained in:
Matt Kraai 2001-12-20 22:30:14 +00:00
parent 2b1effdbbc
commit 31c73af656

View File

@ -738,11 +738,13 @@ int tar_main(int argc, char **argv)
gz_close(gunzip_pid);
}
#endif // CONFIG_FEATURE_TAR_GZIP
#ifdef CONFIG_FEATURE_CLEAN_UP
if (src_filename) {
free(src_filename);
}
if (file_list_name) {
free(file_list_name);
}
#endif
return(EXIT_SUCCESS);
}