From c23a3abdef11d7307e67f790e7a1d59c8bc1e07d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 20 Jan 2008 22:22:28 +0100 Subject: [PATCH] fix for a double free bug --- parse.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.0