From a7b730e73b1714c7522283924174340877228748 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 18 Aug 2008 21:48:57 +0200 Subject: [PATCH] fix use-after-free --- libuci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuci.c b/libuci.c index 5872ae4..1cfe4ec 100644 --- 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; -- 2.11.0