diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-25 18:01:20 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-25 18:01:20 +0000 |
commit | 51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0 (patch) | |
tree | f029b6d39fc4619a8369094efd4c558b10f3d927 /shell | |
parent | a02c5081ae9e7105a2c36d31aadcd039b595e1c6 (diff) | |
download | busybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.tar.gz busybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.tar.bz2 busybox-w32-51cbe780f32bb4d1bb2740f63c111e05fb0d7ee0.zip |
Use BB_FEATURE_CLEAN_UP where appropriate
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 0de18e81f..0ce64beeb 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -115,6 +115,18 @@ void cmdedit_reset_term(void) | |||
115 | if (reset_term) | 115 | if (reset_term) |
116 | /* sparc and other have broken termios support: use old termio handling. */ | 116 | /* sparc and other have broken termios support: use old termio handling. */ |
117 | setTermSettings(fileno(stdin), (void*) &initial_settings); | 117 | setTermSettings(fileno(stdin), (void*) &initial_settings); |
118 | #ifdef BB_FEATURE_CLEAN_UP | ||
119 | if (his_front) { | ||
120 | struct history *n; | ||
121 | //while(his_front!=his_end) { | ||
122 | while(his_front!=his_end) { | ||
123 | n = his_front->n; | ||
124 | free(his_front->s); | ||
125 | free(his_front); | ||
126 | his_front=n; | ||
127 | } | ||
128 | } | ||
129 | #endif | ||
118 | } | 130 | } |
119 | 131 | ||
120 | void clean_up_and_die(int sig) | 132 | void clean_up_and_die(int sig) |