The wrapper function is called in scenarios in which p_trace_route can be NULL.
So NULL check should be performed before deallocation of memory.
Change-Id: I3e985f6890b1f2233a16e08c9cf7e10217b2dd3b
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
static inline void __clear_trace_route_data(inm_trace_route_data_s *p_trace_route)
{
+ if (!p_trace_route)
+ return;
+
REMOVE_G_SOURCE(p_trace_route->tr_timer_source_id);
inm_util_destroy_gio_channel(p_trace_route->sock_io_channel, FALSE);
g_free(p_trace_route->target);