[CONPRO-1454]:[VD][DF190528-00531] Crash 16/211016/2
authorsourav bhuwalka <s.bhuwalka@samsung.com>
Wed, 3 Jul 2019 08:59:18 +0000 (14:29 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 1 Aug 2019 23:09:22 +0000 (08:09 +0900)
commita4050eb8a6bbb7f4aa17597583ae7912596c0470
tree881292bdda17d67b0816ef3d4ce3f13a4463485c
parent5f158d54ec795682e8cf4f504df69c5e34ecc03e
[CONPRO-1454]:[VD][DF190528-00531] Crash

resHandle is being freed twice once in DeleteClientCB and once
in OICFree(resHandle) in OCDoRequest in exit condition.
So freeing resHandle only if clientCB is NULL

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/532/commits/b63e8200da46aa3e5505288bcf284568798a6069
(cherry-picked from b63e8200da46aa3e5505288bcf284568798a6069)

Change-Id: I486cfb9038524292be6d311302719e36fce5aaa4
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
resource/csdk/stack/src/ocstack.c