if (ret != PMINFO_R_OK) {
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(i)", PKGMGR_R_ENOMEM));
+ pkgmgrinfo_updateinfo_destroy(update_info);
return -1;
}
if (ret != PMINFO_R_OK) {
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(i)", PKGMGR_R_ENOMEM));
+ pkgmgrinfo_updateinfo_destroy(update_info);
return -1;
}
if (ret != PMINFO_R_OK) {
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(i)", PKGMGR_R_ENOMEM));
+ pkgmgrinfo_updateinfo_destroy(update_info);
return -1;
}
reqkey = __generate_reqkey("register_pkg_update_info");
if (reqkey == NULL) {
+ pkgmgrinfo_updateinfo_destroy(update_info);
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(i)", PKGMGR_R_ENOMEM));
return -1;
if (_push_queue(target_uid, caller_uid, reqkey,
REQUEST_TYPE_REGISTER_PKG_UPDATE_INFO, "default",
- NULL, buf, update_info))
+ NULL, buf, update_info)) {
+ pkgmgrinfo_updateinfo_destroy(update_info);
g_dbus_method_invocation_return_value(invocation,
g_variant_new("(i)", PKGMGR_R_ESYSTEM));
-
+ return -1;
+ }
if (!g_hash_table_insert(req_table, (gpointer)reqkey,
(gpointer)invocation))
ERR("reqkey already exists");