diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-01-19 23:05:45 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-01-19 23:05:45 +0100 |
commit | 7952092949fb0dccd126d5ff6f73807feb4211b8 (patch) | |
tree | 803215de837283aad00df7f7603be43877969f54 /parse.c | |
parent | 5f28711b07ec0952720300d8561cfb47774a09db (diff) | |
download | uci-7952092949fb0dccd126d5ff6f73807feb4211b8.tar.gz |
more error handling
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |