From 1618d80ec30047e95500a0d5a46ed2b809ee648f Mon Sep 17 00:00:00 2001 From: Mandeep Shetty Date: Mon, 3 Aug 2015 10:27:46 -0700 Subject: [PATCH] Fix segfault on presence payload destroy. Two pointers pointd to the same memory location and both pointers were free'd. One was free'd explicitly and the other was free'd as part of freeing a struct in OCPresencePayloadDestroy. Change-Id: Ieb3517ffeb4ab0abc4e6e7ff2b6b3b44a82264bf Signed-off-by: Mandeep Shetty Reviewed-on: https://gerrit.iotivity.org/gerrit/2086 Reviewed-by: Omkar Hegde Reviewed-by: Erich Keane Tested-by: jenkins-iotivity --- resource/csdk/stack/src/ocstack.c | 1 - 1 file changed, 1 deletion(-) diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c index e08b430..12adb2f 100644 --- a/resource/csdk/stack/src/ocstack.c +++ b/resource/csdk/stack/src/ocstack.c @@ -996,7 +996,6 @@ OCStackResult HandlePresenceResponse(const CAEndpoint_t *endpoint, } exit: - OICFree(resourceTypeName); OCPayloadDestroy(response.payload); return result; } -- 2.7.4