From: Eric Andersen Date: Thu, 24 May 2001 16:19:36 +0000 (-0000) Subject: Plug another memory leak X-Git-Tag: 0_52~132 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a813afc24f864e0055bdd0ef8cde6777a514b212;p=oweals%2Fbusybox.git Plug another memory leak --- diff --git a/hush.c b/hush.c index bb1397179..5c129ce17 100644 --- a/hush.c +++ b/hush.c @@ -2494,6 +2494,7 @@ int parse_stream_outer(struct in_str *inp) done_word(&temp, &ctx); done_pipe(&ctx,PIPE_SEQ); run_list(ctx.list_head); + b_free(&temp); } while (rcode != -1); /* loop on syntax errors, return on EOF */ return 0; } diff --git a/shell/hush.c b/shell/hush.c index bb1397179..5c129ce17 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2494,6 +2494,7 @@ int parse_stream_outer(struct in_str *inp) done_word(&temp, &ctx); done_pipe(&ctx,PIPE_SEQ); run_list(ctx.list_head); + b_free(&temp); } while (rcode != -1); /* loop on syntax errors, return on EOF */ return 0; }