diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-06 20:39:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-06 20:39:27 +0200 |
commit | 035e71578e98744acba2394bb03686d08f60d956 (patch) | |
tree | 276e9d1c68824c6e8f46c7e19fe90d7f1f338ce7 /util-linux | |
parent | 277081e0a4e04b1c39b3eadf4422ef36fded4705 (diff) | |
download | busybox-035e71578e98744acba2394bb03686d08f60d956.tar.gz |
readprofile: do not close/free just before exiting
function old new delta
readprofile_main 1784 1762 -22
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/readprofile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c index b045657d8..394ece1dd 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; } |