summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2001-12-20 22:30:14 +0000
committerMatt Kraai <kraai@debian.org>2001-12-20 22:30:14 +0000
commit31c73af656813b5cadcb1dd27adb9bbc62a98987 (patch)
tree142f08f7d29c02071c78da1596d0025ad16f029d
parent2b1effdbbccf8f16ae3fed93d3178759a44d33d9 (diff)
Perform clean up only if CONFIG_FEATURE_CLEAN_UP is defined.
-rw-r--r--archival/tar.c2
1 files changed, 2 insertions, 0 deletions
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);
}