Fixed Heap corruption 44/199244/1 accepted/tizen/unified/20190214.060716 submit/tizen/20190213.113602
authorAvichal <avichal.a@samsung.com>
Thu, 7 Feb 2019 13:50:50 +0000 (19:20 +0530)
committerAvichal <avichal.a@samsung.com>
Thu, 7 Feb 2019 13:52:39 +0000 (19:22 +0530)
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 <avichal.a@samsung.com>
src/shared/event_loop.cpp

index 4f9e7ed..713cd90 100644 (file)
@@ -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