projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leaks found by using valgrind on test cases.
[project/uci.git]
/
list.c
diff --git
a/list.c
b/list.c
index faf4494ea512bafd4018eff824a6cdb3f5eca1a4..0d00f81b424bc6985360c4c3528b6f2781ee8051 100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-346,7
+346,7
@@
uci_lookup_ext_section(struct uci_context *ctx, struct uci_ptr *ptr)
goto done;
error:
-
e = NULL
;
+
free(section)
;
memset(ptr, 0, sizeof(struct uci_ptr));
UCI_THROW(ctx, UCI_ERR_INVAL);
done: