summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-19 23:05:45 +0100
committerFelix Fietkau <nbd@openwrt.org>2008-01-19 23:05:45 +0100
commit7952092949fb0dccd126d5ff6f73807feb4211b8 (patch)
tree803215de837283aad00df7f7603be43877969f54 /parse.c
parent5f28711b07ec0952720300d8561cfb47774a09db (diff)
downloaduci-7952092949fb0dccd126d5ff6f73807feb4211b8.tar.gz
more error handling
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index f5e6c29..a0a3ec8 100644
--- a/parse.c
+++ b/parse.c
@@ -72,8 +72,10 @@ static void uci_parse_cleanup(struct uci_context *ctx)
if (!pctx)
return;
- if (pctx->cfg)
+ if (pctx->cfg) {
+ uci_list_del(&pctx->cfg->list);
uci_drop_file(pctx->cfg);
+ }
if (pctx->buf)
free(pctx->buf);
if (pctx->file)