diff options
author | Eric Andersen | 2000-07-25 18:01:20 +0000 |
---|---|---|
committer | Eric Andersen | 2000-07-25 18:01:20 +0000 |
commit | b040d4f3da1545225b9a58301deb29acee6aa7f3 (patch) | |
tree | f029b6d39fc4619a8369094efd4c558b10f3d927 /shell/cmdedit.c | |
parent | b9ea02c04b91773e6e5a116313b360f3499a2d4e (diff) | |
download | busybox-b040d4f3da1545225b9a58301deb29acee6aa7f3.zip busybox-b040d4f3da1545225b9a58301deb29acee6aa7f3.tar.gz |
Use BB_FEATURE_CLEAN_UP where appropriate
-Erik
Diffstat (limited to 'shell/cmdedit.c')
-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 0de18e8..0ce64be 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -115,6 +115,18 @@ void cmdedit_reset_term(void) if (reset_term) /* sparc and other have broken termios support: use old termio handling. */ setTermSettings(fileno(stdin), (void*) &initial_settings); +#ifdef BB_FEATURE_CLEAN_UP + if (his_front) { + struct history *n; + //while(his_front!=his_end) { + while(his_front!=his_end) { + n = his_front->n; + free(his_front->s); + free(his_front); + his_front=n; + } + } +#endif } void clean_up_and_die(int sig) |