From b2c39dd4dcf34dcc98f9dafb9d1127f6818a7601 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 27 Dec 2006 19:03:46 +0000 Subject: [PATCH] Prevents a bug in libevent event_base_free(). event_base_free() has a bug that make it assert() always. This patch avoid using it (leaking memory). --- event | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event b/event index a4577bd..d2ec386 100644 --- a/event +++ b/event @@ -524,7 +524,9 @@ struct dispatcher internal::event_base_priority_init(_event_base, npriorities); } +#ifdef EVENT_BASE_FREE_FIX ~dispatcher() throw() { event_base_free(_event_base); } +#endif /** * Adds an event to the dispatcher. -- 2.43.0