when ^C’ing out of an interactive shell, also throw away the here documents (probably leaks, maybe not due to quitenv, but not much)

This commit is contained in:
tg 2012-10-30 20:07:00 +00:00
parent f5ccc2feb3
commit fc27886680
1 changed files with 2 additions and 1 deletions

3
main.c
View File

@ -34,7 +34,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.233 2012/10/22 20:19:14 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.234 2012/10/30 20:07:00 tg Exp $");
extern char **environ;
@ -795,6 +795,7 @@ shell(Source * volatile s, volatile bool toplevel)
*/
/* toss any input we have so far */
s->start = s->str = null;
herep = heres;
break;
}
/* FALLTHROUGH */