From: Avichal Date: Thu, 7 Feb 2019 13:50:50 +0000 (+0530) Subject: Fixed Heap corruption X-Git-Tag: accepted/tizen/unified/20190214.060716^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F199244%2F1;p=platform%2Fcore%2Fsystem%2Fsensord.git Fixed Heap corruption JIra issue Tizen 5.0 release TFIVE-14499 [ASAN][BUG] heap-use-after-free in amd on TM1 Change-Id: Ib60e0968d00d6fa22dd9dbc9aaf396772a8f1add Signed-off-by: Avichal --- diff --git a/src/shared/event_loop.cpp b/src/shared/event_loop.cpp index 4f9e7ed..713cd90 100644 --- a/src/shared/event_loop.cpp +++ b/src/shared/event_loop.cpp @@ -179,6 +179,7 @@ void event_loop::release_info(handler_info *info) g_source_destroy(info->g_src); g_source_unref(info->g_src); + info->g_src = NULL; g_io_channel_unref(info->g_ch); info->g_ch = NULL; @@ -187,6 +188,7 @@ void event_loop::release_info(handler_info *info) info->handler = NULL; delete info; + info = NULL; } class terminator : public event_handler