From 85e6a40b540e20a5e4e1892610d44fbccf07ece5 Mon Sep 17 00:00:00 2001 From: Satya Prakash Gupta Date: Thu, 18 Jun 2015 11:45:07 +0530 Subject: [PATCH] Fix memory leak in Notification Manager Fix memory leak in requestIsAlive when resource is not found. Change-Id: Ia54883ac2d4f207402c4ac99a0e5304e96a39257 Signed-off-by: Satya Prakash Gupta Reviewed-on: https://gerrit.iotivity.org/gerrit/1354 Tested-by: jenkins-iotivity Reviewed-by: Harish Marappa Reviewed-by: JungYong KIM Reviewed-by: Uze Choi --- service/notification-manager/NotificationManager/src/hosting.c | 1 + 1 file changed, 1 insertion(+) diff --git a/service/notification-manager/NotificationManager/src/hosting.c b/service/notification-manager/NotificationManager/src/hosting.c index 38193fc..f0308a0 100644 --- a/service/notification-manager/NotificationManager/src/hosting.c +++ b/service/notification-manager/NotificationManager/src/hosting.c @@ -1230,6 +1230,7 @@ OCStackResult requestIsAlive(const char *address) if (requestMirrorResourceList->headerNode == NULL) { OC_LOG_V(DEBUG, HOSTING_TAG, "Cannot found any mirror resource2"); + destroyMirrorResourceList(requestMirrorResourceList); return OC_STACK_ERROR; } -- 2.7.4