projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
672d68a
)
fix use-after-free
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Aug 2008 19:48:57 +0000
(21:48 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Aug 2008 19:48:57 +0000
(21:48 +0200)
libuci.c
patch
|
blob
|
history
diff --git
a/libuci.c
b/libuci.c
index 5872ae4220a8fff2810a68aa7e83b9a97a329396..1cfe4ec87e6cd2aafe79f0e95f7c4c033d878dfd 100644
(file)
--- a/
libuci.c
+++ b/
libuci.c
@@
-85,8
+85,8
@@
void uci_free_context(struct uci_context *ctx)
uci_foreach_element_safe(&ctx->history_path, tmp, e) {
uci_free_element(e);
}
- free(ctx);
UCI_TRAP_RESTORE(ctx);
+ free(ctx);
ignore:
return;