Change-Id: I2cfcdb00e5381697958e490892285d89ae6798a8
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
while (g_variant_iter_loop(sub_iter, "(su)", &app_id, &app_time)) {
atm = (app_time_map_st1 *)malloc(sizeof(app_time_map_st1));
if (!atm) {
+ g_free(app_id);
+ g_variant_iter_free(sub_iter);
_E("failed to allocate memory");
goto err;
}
bds = (bm_display_st *)malloc(sizeof(bm_display_st));
if (!bds) {
- _E("failed to allocate memory");
+ g_variant_iter_free(sub_iter);
g_slist_free_full(atm_list, _atm_list_free);
+ _E("failed to allocate memory");
goto err;
}