From bb020bbe78434a221f6d404d7f83e5bd804ed541 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 16 Jun 2017 23:30:46 +0200 Subject: NetworkSingleton: Fixed an object leak upon termination. --- src/OSSupport/NetworkSingleton.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OSSupport/NetworkSingleton.cpp b/src/OSSupport/NetworkSingleton.cpp index fde39807b..7daf85b76 100644 --- a/src/OSSupport/NetworkSingleton.cpp +++ b/src/OSSupport/NetworkSingleton.cpp @@ -149,6 +149,7 @@ void cNetworkSingleton::RunEventLoop(cNetworkSingleton * a_Self) timeval timeout{}; // Zero timeout - execute immediately evtimer_add(timer, &timeout); event_base_loop(a_Self->m_EventBase, EVLOOP_NO_EXIT_ON_EMPTY); + event_free(timer); } -- cgit v1.2.3