]> pilppa.com Git - uci.git/commitdiff
fix for a double free bug
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2008 21:22:28 +0000 (22:22 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2008 21:22:28 +0000 (22:22 +0100)
parse.c

diff --git a/parse.c b/parse.c
index c8f090c41e5bc943c9a9dd8afbd33e906b849a58..5158028bb68bdbf93455bbb78a3f319d7f845b17 100644 (file)
--- 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);