Browse Source

fix for a double free bug

Felix Fietkau 16 years ago
parent
commit
c23a3abdef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      parse.c

+ 1 - 0
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);