X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap.c;h=b4f9518f5b5af5a4d7d294389b650d6576f71a4d;hp=776a30439ef2ac9839e3cd5d6f5e25c4bdfb2e99;hb=19e29ffc15dbd958e8e6a648ee0982c68353516f;hpb=d068b9f9d7adcc43264fb1931256536aa89a980d diff --git a/ucimap.c b/ucimap.c index 776a304..b4f9518 100644 --- a/ucimap.c +++ b/ucimap.c @@ -13,7 +13,7 @@ */ /* - * This file contains ucimap, an API for mapping UCI to C data structures + * This file contains ucimap, an API for mapping UCI to C data structures */ #include @@ -713,10 +713,8 @@ ucimap_parse_section(struct uci_map *map, struct uci_sectionmap *sm, struct ucim return 0; error_mem: - if (sd->alloc_custom) - free(sd->alloc_custom); - if (sd->allocmap) - free(sd->allocmap); + free(sd->alloc_custom); + free(sd->allocmap); free(sd); return UCI_ERR_MEM;