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/readprofile.c | |
parent | 277081e0a4e04b1c39b3eadf4422ef36fded4705 (diff) | |
download | busybox-w32-035e71578e98744acba2394bb03686d08f60d956.tar.gz busybox-w32-035e71578e98744acba2394bb03686d08f60d956.tar.bz2 busybox-w32-035e71578e98744acba2394bb03686d08f60d956.zip |
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/readprofile.c')
-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) | |||
266 | printf("%6u %-40s %8.4f\n", | 266 | printf("%6u %-40s %8.4f\n", |
267 | total, "total", total/(double)(fn_add-add0)); | 267 | total, "total", total/(double)(fn_add-add0)); |
268 | 268 | ||
269 | fclose(map); | 269 | if (ENABLE_FEATURE_CLEAN_UP) { |
270 | free(buf); | 270 | fclose(map); |
271 | free(buf); | ||
272 | } | ||
271 | 273 | ||
272 | return EXIT_SUCCESS; | 274 | return EXIT_SUCCESS; |
273 | } | 275 | } |