From 035e71578e98744acba2394bb03686d08f60d956 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Aug 2017 20:39:27 +0200 Subject: readprofile: do not close/free just before exiting function old new delta readprofile_main 1784 1762 -22 Signed-off-by: Denys Vlasenko --- util-linux/readprofile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index b045657..394ece1 100644 --- a/util-linux/readprofile.c +++ b/util-linux/readprofile.c @@ -266,8 +266,10 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv) printf("%6u %-40s %8.4f\n", total, "total", total/(double)(fn_add-add0)); - fclose(map); - free(buf); + if (ENABLE_FEATURE_CLEAN_UP) { + fclose(map); + free(buf); + } return EXIT_SUCCESS; } -- cgit v1.1