From: Felix Fietkau Date: Sun, 20 Jan 2008 21:22:28 +0000 (+0100) Subject: fix for a double free bug X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=c23a3abdef11d7307e67f790e7a1d59c8bc1e07d fix for a double free bug --- diff --git a/parse.c b/parse.c index c8f090c..5158028 100644 --- a/parse.c +++ b/parse.c @@ -77,6 +77,7 @@ static void uci_parse_cleanup(struct uci_context *ctx) if (!pctx) return; + ctx->pctx = NULL; if (pctx->cfg) { uci_list_del(&pctx->cfg->list); uci_drop_file(pctx->cfg);