pkgmgrinfo_appinfo_destroy_appinfo(handle);
return false;
}
+ pkgmgrinfo_appinfo_destroy_appinfo(handle);
+
ret = pkgmgrinfo_appinfo_get_usr_appinfo(remote_appid, getuid(), &handle);
if (ret != PMINFO_R_OK) {
_LOGE("Failed to get the appinfo. %d", ret);
&error);
if (error) {
_LOGE("RequestName fail : %s", error->message);
+ g_error_free(error);
goto out;
}
if (result == NULL) {
_LOGE("g_unix_fd_list_append [%s]", err->message);
ret = MESSAGEPORT_ERROR_IO_ERROR;
g_error_free(err);
+ close(sock_pair[SOCK_PAIR_SENDER]);
+ close(sock_pair[SOCK_PAIR_RECEIVER]);
goto out;
}
port_info->send_sock_fd = sock_pair[SOCK_PAIR_SENDER];