[IOT-3083] IUT crash while batch update by href 35/25735/3
authorBiman Paul <biman.paul@samsung.com>
Fri, 8 Jun 2018 10:25:03 +0000 (15:55 +0530)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 14 Jun 2018 21:47:38 +0000 (21:47 +0000)
commitbf54118398692ddd418a3508c8a161a70fb63d85
tree6a6c15de26f2ab8168d13792e3c6906b31576054
parent55f374a54a6e5219d4054606c610c5aee24f5dd9
[IOT-3083] IUT crash while batch update by href

IUT crash occured while executing CTT Server Testcase 1.2.13
Batch update by href. Double free occured for server request
handle. Once in HandleSingleResponse() and another in
HandleAggregateResponse().
6  0x00007ffff705f452 in OICFree (ptr=0x7fffd400d6f0)
    at resource/c_common/oic_malloc/src/oic_malloc.c:150
7  0x00007ffff729da8e in DeleteServerRequest (serverRequest=0x7fffd40008c0)
    at resource/csdk/stack/src/ocserverrequest.c:412
8  0x00007ffff729eaf1 in HandleAggregateResponse (ehResponse=0x7fffe8dcc450)
    at resource/csdk/stack/src/ocserverrequest.c:892

Change-Id: I69ca3d5a0fe59626b545047530b68fd0cfdd27ad
Signed-off-by: Biman Paul <biman.paul@samsung.com>
resource/csdk/stack/include/internal/tree.h
resource/csdk/stack/src/ocserverrequest.c