resource-encapsulation: use OICFree for query 97/22297/4
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 25 Aug 2017 08:24:35 +0000 (10:24 +0200)
committerPhil Coval <philippe.coval@osg.samsung.com>
Fri, 13 Oct 2017 07:52:58 +0000 (07:52 +0000)
commitc9431af92d237a676608a3248e834a9306810bc9
tree3de08dc1cadae283bc3960d694986535b5db41f2
parenta855c499147ce3b9dd1a87db870ad2600c3e4277
resource-encapsulation: use OICFree for query

Track memory allocations using oic_malloc, oic_string.

This will suppress valgrind warning about using delete on C string,
previously, ocEntityHandlerRequest.query was allocated using C strdup,
so free should be used not C++ delete[].

Conflicts:
service/resource-encapsulation/src/serverBuilder/unittests/RCSResourceObjectTest.cpp

Bug: https://jira.iotivity.org/browse/IOT-2267
Origin: https://gerrit.iotivity.org/gerrit/#/c/22129
Change-Id: I86a3a3dfee8492656ee89de5913617369bf1fbb3
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22129
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
service/resource-encapsulation/src/serverBuilder/unittests/RCSResourceObjectTest.cpp