PMINFO_APPINFO_PROP_APP_COMPONENT, "svcapp");
if (ret < 0) {
_E("failed to add appinfo filter string");
+ pkgmgrinfo_appinfo_filter_destroy(handle);
return ES_R_ERROR;
}
ret = pkgmgrinfo_appinfo_filter_add_string(handle,
PMINFO_APPINFO_PROP_APP_OPERATION, APPSVC_OPERATION_LAUNCH_ON_EVENT);
if (ret < 0) {
_E("failed to add appinfo filter string");
+ pkgmgrinfo_appinfo_filter_destroy(handle);
return ES_R_ERROR;
}
ret = pkgmgrinfo_appinfo_usr_filter_foreach_appinfo(handle,
__esd_add_appinfo_handler, &cur_uid, cur_uid);
if (ret < 0) {
_E("appinfo filter foreach error");
+ pkgmgrinfo_appinfo_filter_destroy(handle);
return ES_R_ERROR;
}
pkgmgrinfo_appinfo_filter_destroy(handle);