Fix memory leak in requestIsAlive when resource is not found.
Change-Id: Ia54883ac2d4f207402c4ac99a0e5304e96a39257
Signed-off-by: Satya Prakash Gupta <sp.gupta@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1354
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
if (requestMirrorResourceList->headerNode == NULL)
{
OC_LOG_V(DEBUG, HOSTING_TAG, "Cannot found any mirror resource2");
+ destroyMirrorResourceList(requestMirrorResourceList);
return OC_STACK_ERROR;
}