[IOT-2334][IOT-2335] Fixed presence sample app crash issue
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 22 May 2017 04:50:11 +0000 (13:50 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 22 May 2017 06:34:36 +0000 (06:34 +0000)
we should call CADestroyToken() to free memory after merging
https://gerrit.iotivity.org/gerrit/19263

Bug: https://jira.iotivity.org/browse/IOT-2334
Bug: https://jira.iotivity.org/browse/IOT-2335
Change-Id: I10fb78d1f6f63a31678b07d917da547e054161b0
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20211
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Glen Youngjin Kim <glen.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/occlientcb.c

index 57d4873..af43b3d 100755 (executable)
@@ -174,7 +174,7 @@ AddClientCB(ClientCB** clientCB, OCCallbackData* cbData,
             cbData->cd(cbData->context);
         }
 
-        OICFree(token);
+        CADestroyToken(token);
         OICFree(*handle);
         OICFree(requestUri);
         OICFree(devAddr);