{
const char *callee_appid;
bundle *b;
+ bool ret = false;
if (strlen(b_data) == 4 && strncmp(b_data, "null", 4) == 0)
return true;
b = bundle_decode((bundle_raw *)b_data, strlen(b_data));
+ if (b == NULL)
+ return false;
+
callee_appid = appsvc_get_appid(b);
- if (callee_appid == NULL)
+ if (callee_appid == NULL) {
+ bundle_free(b);
return false;
+ }
if (__is_ui_app(callee_appid, uid))
- return true;
+ ret = true;
- return false;
+ bundle_free(b);
+ return ret;
}
static __alarm_info_t *__alarm_update_in_list(int uid, alarm_id_t alarm_id,
} else if (retval == PMINFO_R_OK && !is_global) {
return_code = ERR_ALARM_NOT_PERMITTED_APP;
}
-
+ pkgmgrinfo_pkginfo_destroy_pkginfo(handle);
}
g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", return_code));
}