From e637823e41ad922f8d9787ff6f5045b720f53cb3 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 14 Oct 2019 16:26:22 +0200 Subject: [CICN-20] use-after-free causes several valgrind warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordan Augé Change-Id: Ibeff21ff8533b02dc1541b6a31491eb7d762addc --- libparc/parc/algol/internal_parc_Event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libparc/parc/algol/internal_parc_Event.c b/libparc/parc/algol/internal_parc_Event.c index 9335e1e0..53c1f0f0 100644 --- a/libparc/parc/algol/internal_parc_Event.c +++ b/libparc/parc/algol/internal_parc_Event.c @@ -79,8 +79,8 @@ internal_parc_initializeLibevent(void) struct event *event = event_new(evbase, -1, 0, NULL, NULL); parcAssertNotNull(event, "Libevent event_new returned NULL"); event_del(event); - event_base_free(evbase); event_free(event); + event_base_free(evbase); event_set_mem_functions(internal_parc_alloc, internal_parc_realloc, -- cgit 1.2.3-korg