projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6095d
)
ucimap: fix a memory leak (patch by Stanislav Fomichev)
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Oct 2011 13:14:03 +0000
(15:14 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 21 Oct 2011 13:17:06 +0000
(15:17 +0200)
ucimap.c
patch
|
blob
|
history
diff --git
a/ucimap.c
b/ucimap.c
index 0bc31c58601dbee9bbbfdc75dde2dc65c70b8fea..7af7f635af45dca8d19b61f81ac94de47fdee530 100644
(file)
--- 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);