X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=list.c;h=0d00f81b424bc6985360c4c3528b6f2781ee8051;hp=faf4494ea512bafd4018eff824a6cdb3f5eca1a4;hb=ecf0ed555ebc1b8e5b6aba54bb06a907bb4aecf2;hpb=f506323c307a3675d50f50e43acc93ca6b00df10 diff --git a/list.c b/list.c index faf4494..0d00f81 100644 --- a/list.c +++ b/list.c @@ -346,7 +346,7 @@ uci_lookup_ext_section(struct uci_context *ctx, struct uci_ptr *ptr) goto done; error: - e = NULL; + free(section); memset(ptr, 0, sizeof(struct uci_ptr)); UCI_THROW(ctx, UCI_ERR_INVAL); done: