Update logic in CQueryEngine::processQueryResult to free
pDataReader in case of error.
Change-Id: I14cb27cd5c56731632fc6288cec555807f96ba97
Signed-off-by: Ankur Bansal <ankur.b1@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1520
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Minji Park <minjii.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
pData[0] = EVENT_TYPE_OUTER;
pData[1] = userTriggerId;
pData[2] = reinterpret_cast<intptr_t>(pDataReader);
+ pDataReader = NULL;
m_pTasker->addTask(this, (void *)pData);
CLEANUP:
m_mtxQueries.unlock();
+ SAFE_DELETE(pDataReader);
SAFE_RELEASE(temp_contextmodel);
SAFE_RELEASE(temp_contextmodel2);
return res;