message_port_lock_mutex();
if (!is_local_port_registed(remote_port, remote_trusted, &local_reg_id, &mi)) {
_LOGE("Invalid argument : remote_port:(%s) trusted(%d)", remote_port, remote_trusted);
+ bundle_free(data);
message_port_unlock_mutex();
return;
}
if (strcmp(remote_port, mi->port_name) != 0) {
_LOGE("Invalid argument : remote_port (%s)", remote_port);
+ bundle_free(data);
message_port_unlock_mutex();
return;
}
} else {
_LOGE("The application (%s) is not signed with the same certificate",
local_appid);
+ bundle_free(data);
message_port_unlock_mutex();
return;
}