From: Felix Fietkau Date: Fri, 21 Oct 2011 13:14:03 +0000 (+0200) Subject: ucimap: fix a memory leak (patch by Stanislav Fomichev) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5077cdcee2b3b54e7e87596a98a77bac246bbaae;p=oweals%2Fuci.git ucimap: fix a memory leak (patch by Stanislav Fomichev) --- diff --git a/ucimap.c b/ucimap.c index 0bc31c5..7af7f63 100644 --- a/ucimap.c +++ b/ucimap.c @@ -712,6 +712,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);