[IOT-3083] IUT crash while batch update by href 05/25805/2
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:49:54 +0000 (21:49 +0000)
commit0bba2f80fe940271fe32e4c34dd4f54deb0f2dc6
treea246820deef67c8e1f7fc87ccb15c4af79de6eea
parentbc8c9fdc361c2a68e816b099439bf861d01dd8d9
[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