Fix for the crash in RI sample app
authorPoovizhi <poovizhi.a@samsung.com>
Tue, 18 Apr 2017 14:16:05 +0000 (19:46 +0530)
committerZiran Sun <ziran.sun@samsung.com>
Wed, 3 May 2017 13:55:14 +0000 (13:55 +0000)
commite7f055a3c0356900034be2e65e6e1e07b939d50e
tree54fe16f9d0a33c67d1860cecb4c284ed955d73a1
parentc7355c3aa634d100a0ade730c4a8a28c047541c9
Fix for the crash in RI sample app

The roomserver app crashes due to Invalid free in ocserverrequest.c
Flow: sendResponse->OCDoResponse->HandleAggregateResponse->DeleteServerResponse->OCPayloadDestroy
The payload is already freed in the caller function of sendResponse in InProcServerWrapper.cpp
OCPayloadDestroy is called twice during sendResponse causing a crash in the app.
Hence removing the OCPayloadDestroy called in the method DeleteServerResponse

Change-Id: If8155238120789736c39b396b65989a2dfc59ded
Signed-off-by: Poovizhi <poovizhi.a@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19155
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
resource/csdk/stack/src/ocserverrequest.c