Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Ia4a369a88c1387058ec95e443d8cfeb89e362808
ret = _get_pkg_updateinfo_from_db(NULL, &info_list, uid);
if (ret != 0) {
_LOGE("Failed to get pkg update info for user[%d]", (int)uid);
- pkgmgrinfo_updateinfo_destroy(info_list);
+ g_slist_free_full(info_list, __free_update_info);
return PMINFO_R_ERROR;
}
if (ret != 0) {
_LOGE("Failed to get pkg update info for user[%d]",
(int)GLOBAL_USER);
- pkgmgrinfo_updateinfo_destroy(info_list);
+ g_slist_free_full(info_list, __free_update_info);
return PMINFO_R_ERROR;
}