projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
style: free(NULL) is perfectly valid so we can drop some checks
[project/uci.git]
/
ucimap.c
diff --git
a/ucimap.c
b/ucimap.c
index 776a30439ef2ac9839e3cd5d6f5e25c4bdfb2e99..b68f1aee70490934f0eee2b85724033ece67e56b 100644
(file)
--- a/
ucimap.c
+++ b/
ucimap.c
@@
-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;