projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check result of memory allocations (patch by Stanislav Fomichev)
[project/uci.git]
/
ucimap.c
diff --git
a/ucimap.c
b/ucimap.c
index 16ce56ad56f95b285dae58ed579928d1d58f7f98..6a5c11721bbc79e192d22785e8ce1c7997bdc342 100644
(file)
--- a/
ucimap.c
+++ b/
ucimap.c
@@
-275,6
+275,8
@@
ucimap_resize_list(struct ucimap_section_data *sd, struct ucimap_list **list, in
if (!*list) {
new = calloc(1, size);
+ if (!new)
+ return -ENOMEM;
ucimap_add_alloc(sd, new);
goto set;