diff options
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 | } |