summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-26 13:53:17 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-26 13:53:17 +0200
commit00c65e44ca3e7e749ac94e48c44e9634eec5c562 (patch)
tree787b680b2843a5b45f31021cdda8267187bb6c75 /common
parent8f1559034ab114719b35832c48b9297b1ecc18c1 (diff)
downloadbarebox-00c65e44ca3e7e749ac94e48c44e9634eec5c562.tar.gz
barebox-00c65e44ca3e7e749ac94e48c44e9634eec5c562.tar.xz
hush.c: Remove wrong free() of ctx->pipe->progs. After breaking out
of the while loop ctx->pipe is invalid, so we cannot dereference ctx->pipe->progs.
Diffstat (limited to 'common')
-rw-r--r--common/hush.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/common/hush.c b/common/hush.c
index b1ab0dc0a7..9eb490b481 100644
--- a/common/hush.c
+++ b/common/hush.c
@@ -1316,9 +1316,6 @@ static int parse_stream_outer(struct p_context *ctx, struct in_str *inp, int fla
b_free(&temp);
} while (rcode != -1 && !(flag & FLAG_EXIT_FROM_LOOP)); /* loop on syntax errors, return on EOF */
- if (ctx->pipe->progs)
- free(ctx->pipe->progs);
-
return (code != 0) ? 1 : 0;
}