From: Matt Kraai Date: Thu, 20 Dec 2001 22:30:14 +0000 (-0000) Subject: Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined. X-Git-Tag: 0_60_3~153 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31c73af656813b5cadcb1dd27adb9bbc62a98987;p=oweals%2Fbusybox.git Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined. --- diff --git a/archival/tar.c b/archival/tar.c index 8720144b2..dd65de131 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -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); }