From: Habib Virji Date: Mon, 12 Dec 2016 12:20:55 +0000 (+0000) Subject: Double free of OCServerRequest X-Git-Tag: 1.3.0~1024 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7db33c3f5075ba082ade80c9f106a9c49e1a0a85;p=platform%2Fupstream%2Fiotivity.git Double free of OCServerRequest OCServerRequest was deleted once in SendListObserverNotification and HandleSingleResponse. Change-Id: I2964a6a65d760369afaf3e1325eae825d4ce3345 Signed-off-by: Habib Virji Reviewed-on: https://gerrit.iotivity.org/gerrit/15503 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi Reviewed-by: Ziran Sun --- diff --git a/resource/csdk/stack/src/ocobserve.c b/resource/csdk/stack/src/ocobserve.c index 1d7a48c..1b756c6 100644 --- a/resource/csdk/stack/src/ocobserve.c +++ b/resource/csdk/stack/src/ocobserve.c @@ -317,7 +317,6 @@ OCStackResult SendListObserverNotification (OCResource * resource, numSentNotification++; OICFree(ehResponse.payload); - FindAndDeleteServerRequest(request); } else { @@ -682,4 +681,3 @@ GetObserveHeaderOption (uint32_t * observationOption, } return OC_STACK_OK; } -