Change-Id: Ibbaa488ec6d42e1f566ec9bab847411fed992ba0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
resmon->timer_list = g_list_remove(resmon->timer_list,
(gpointer)monitor);
+ free(monitor);
+ monitor = NULL;
+
return 0;
}
res->config_data.res_name, monitor->src_type);
return false;
}
-
- free(monitor);
- monitor = NULL;
break;
case RESMON_TIMER_PERIODIC:
break;
res->config_data.res_type, src_type);
}
- /* Free the memory of resource monitor */
- free(monitor);
- monitor = NULL;
-
return 0;
}