resp->numRcvdVendorSpecificHeaderOptions, &options);
if (IOTCON_ERROR_NONE != ret) {
ERR("ic_ioty_parse_oic_header_option() Fail(%d)", ret);
+ icl_representation_destroy(repr);
return OC_STACK_KEEP_TRANSACTION;
}
resp->numRcvdVendorSpecificHeaderOptions, &options);
if (IOTCON_ERROR_NONE != ret) {
ERR("ic_ioty_parse_oic_header_option() Fail(%d)", ret);
+ icl_representation_destroy(repr);
return OC_STACK_DELETE_TRANSACTION;
}
res = calloc(1, sizeof(struct icl_resource_response));
if (NULL == res) {
ERR("calloc() Fail(%d)", errno);
+ icl_representation_destroy(repr);
return OC_EH_ERROR;
}
res->oic_request_h = request->requestHandle;
if (IOTCON_ERROR_NONE != ret) {
ERR("icl_ioty_mutex_lock() Fail(%d)", ret);
_icl_ioty_free_response_container(cb_container);
+ free(uri);
return ret;
}
SECURE_DBG("uri:[%s], oic_conn_type:[0x%x] To [%s:%d] ", uri, oic_conn_type, dev_addr.addr, dev_addr.port);
}
snprintf(uri, sizeof(uri), "%s%s%s", IC_COAP, host_address, version_uri);
+ free(host_address);
DBG("uri : %s", uri);
cbdata.cb = _provisioning_find_security_version_cb;
snprintf(uri, sizeof(uri), "%s%s%s", IC_COAP, host_address,
OC_RSRVD_WELL_KNOWN_URI);
+ free(host_address);
cbdata.cb = _provisioning_find_secure_port_cb;
cbdata.cd = _provisioning_free_find_cb_container;
if (IOTCON_ERROR_NONE != ret) {
ERR("icl_ioty_mutex_lock() Fail(%d)", ret);
_provisioning_provision_acl_cb_container_destroy(container);
+ OCDeleteACLList(oic_acl);
return ret;
}
if (IOTCON_ERROR_NONE != ret) {
ERR("icl_ioty_mutex_lock() Fail(%d)", ret);
_provisioning_pairwise_devices_cb_container_destroy(container);
+ OCDeleteACLList(oic_acl1);
+ OCDeleteACLList(oic_acl2);
return ret;
}
/* get the resource host address */
char *resource_host = NULL;
- iotcon_remote_resource_get_host_address(resource, &resource_host);
+ ret = iotcon_remote_resource_get_host_address(resource, &resource_host);
+ if (IOTCON_ERROR_NONE != ret) {
+ ERR("iotcon_remote_resource_get_host_address() Fail(%d)", ret);
+ return;
+ }
INFO("resource host : %s", resource_host);
ret = iotcon_response_get_representation(response, &recv_repr);