From fa3fd4700f512be6be408162779642f8bfde2624 Mon Sep 17 00:00:00 2001 From: Wu Jiangbo Date: Wed, 3 Sep 2014 15:09:02 +0800 Subject: [PATCH] Stack/Observer: Free OCEntityHandlerRequest object after sent notification Change-Id: I539778ed8ad65c45635ff64f0b71a5ade1743894 --- csdk/stack/src/ocobserve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csdk/stack/src/ocobserve.c b/csdk/stack/src/ocobserve.c index f21c728..e4495e3 100644 --- a/csdk/stack/src/ocobserve.c +++ b/csdk/stack/src/ocobserve.c @@ -248,6 +248,8 @@ OCStackResult SendObserverNotification (OCMethod method, OCResource *resPtr, uin { stackRet = OC_STACK_ERROR; } + + OCFree(entityHandlerReq); } resourceObserver = resourceObserver->next; } -- 2.7.4