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)
switch (**str) {
case '"':
val = parse_double_quote(str);
+ break;
case '\'':
val = parse_single_quote(str);
+ break;
case 0:
val = NULL;
+ break;
default:
val = parse_unquoted(str);
+ break;
}
if (required && !val) {