diff options
author | Ron Yorston <rmy@pobox.com> | 2016-10-19 17:01:55 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-10-19 17:01:55 +0100 |
commit | 075814c60a316cfd088c88f26f75ab21b5850b98 (patch) | |
tree | f6e33ac693630827deb309faa5fa4931588db57d /procps | |
parent | 977d65c1bbc57f5cdd0c8bfd67c8b5bb1cd390dd (diff) | |
parent | f37e1155aabde6bd95d267a8aec347cedccb8bc3 (diff) | |
download | busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.gz busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.tar.bz2 busybox-w32-075814c60a316cfd088c88f26f75ab21b5850b98.zip |
Merge branch busybox (up to "ash: comment out free(p) just before...")
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/procps/top.c b/procps/top.c index 73cd285f0..6f7f7d382 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -728,12 +728,6 @@ static void reset_term(void) | |||
728 | { | 728 | { |
729 | if (!OPT_BATCH_MODE) | 729 | if (!OPT_BATCH_MODE) |
730 | tcsetattr_stdin_TCSANOW(&initial_settings); | 730 | tcsetattr_stdin_TCSANOW(&initial_settings); |
731 | if (ENABLE_FEATURE_CLEAN_UP) { | ||
732 | clearmems(); | ||
733 | # if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | ||
734 | free(prev_hist); | ||
735 | # endif | ||
736 | } | ||
737 | } | 731 | } |
738 | 732 | ||
739 | static void sig_catcher(int sig) | 733 | static void sig_catcher(int sig) |
@@ -1258,5 +1252,11 @@ int top_main(int argc UNUSED_PARAM, char **argv) | |||
1258 | #if ENABLE_FEATURE_USE_TERMIOS | 1252 | #if ENABLE_FEATURE_USE_TERMIOS |
1259 | reset_term(); | 1253 | reset_term(); |
1260 | #endif | 1254 | #endif |
1255 | if (ENABLE_FEATURE_CLEAN_UP) { | ||
1256 | clearmems(); | ||
1257 | #if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE | ||
1258 | free(prev_hist); | ||
1259 | #endif | ||
1260 | } | ||
1261 | return EXIT_SUCCESS; | 1261 | return EXIT_SUCCESS; |
1262 | } | 1262 | } |