Commit 4ba431ac authored by hyuna0213.jo's avatar hyuna0213.jo Committed by Erich Keane

Fix memory leak in CA android sample

Endpoint allocated memory in CA sample is not freed.

Change-Id: I3a8b2716a469b808a788952866709bf188ad0e56
Signed-off-by: default avatarhyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1635Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarjihwan seo <jihwan.seo@samsung.com>
Reviewed-by: default avatarErich Keane <erich.keane@intel.com>
parent d92b91b5
......@@ -435,6 +435,8 @@ Java_org_iotivity_ca_service_RMInterface_RMSendReqestToAll(JNIEnv *env, jobject
if (NULL == headerOpt)
{
LOGE("Memory allocation failed");
// destroy remote endpoint
CADestroyEndpoint(endpoint);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment