From: Ivan Furs Date: Wed, 13 Jul 2016 12:01:50 +0000 (+0900) Subject: [Bug] EFL memory leak on Windows(handler continuously increasing) X-Git-Tag: upstream/1.20.0~5188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4387f34b5475bdf6136a12fdf791efe3131d07ac;p=platform%2Fupstream%2Fefl.git [Bug] EFL memory leak on Windows(handler continuously increasing) Summary: Fix: event need to clese when create event: event = WSACreateEvent(); Reviewers: bowonryu, herb, Jaehyun, thiepha, Hermet, jaehwan, cedric, raster Reviewed By: raster Subscribers: NikaWhite, reutskiy.v.v, artem.popov Differential Revision: https://phab.enlightenment.org/D4157 --- diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 999b3f8..354edc9 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -2603,9 +2603,8 @@ _ecore_main_win32_select(int nfds EINA_UNUSED, if (timeout == 0) { - free(objects); - free(sockets); - return 0; + res = 0; + goto err; } result = _ecore_main_win32_objects_wait(objects_nbr, @@ -2701,6 +2700,7 @@ _ecore_main_win32_select(int nfds EINA_UNUSED, res = -1; } +err : /* Remove event objects again */ for (i = 0; i < events_nbr; i++) WSACloseEvent(objects[i]);