things-manager: Fix cppcheck errors
authorRavi Nanjundappa <nravi.n@samsung.com>
Wed, 1 Jul 2015 09:02:58 +0000 (14:32 +0530)
committerUze Choi <uzchoi@samsung.com>
Mon, 6 Jul 2015 02:44:16 +0000 (02:44 +0000)
commit094e680af3e2b6d043bc0d75aba7479b0059869d
tree9490e05cab5e326c4437487a5ebb2e03029ff343
parentceb6b5b1039032f5523f070843df69cddcb0a433
things-manager: Fix cppcheck errors

This patch fixes the errors reported by cppcheck tool for '(error) Mismatching
allocation and deallocation: newActionSet'.
Replaced free() calls with delete wherever the memory is allocated using new().

Change-Id: Icc22a8c7658c29afb8ed60b5cd9926e69ce3e6fb
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1506
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/things-manager/sdk/src/ThingsConfiguration.cpp
service/things-manager/sdk/src/ThingsDiagnostics.cpp