Fix for defects detected by static analysis in Resource Broker/Cache/Hosting.
authorjyong2.kim <jyong2.kim@samsung.com>
Wed, 24 Feb 2016 05:24:04 +0000 (14:24 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 25 Feb 2016 02:24:09 +0000 (02:24 +0000)
commit8e0e45a0a1214ae07ecf3d5b56a9c6971dfe6a09
tree17a3e0fdc837ca93bcfc0f2837a408ffa2e3b70a
parentf47a271c6aa98b7859e3abb1dc61a589fa8f3252
Fix for defects detected by static analysis in Resource Broker/Cache/Hosting.

fix memory leak.
define copy constructor.
catch exception at destructor.

Change-Id: I52ed517449603b58f0fc04619e02757e67abf55d
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5163
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/src/resourceBroker/include/DevicePresence.h
service/resource-encapsulation/src/resourceBroker/src/DevicePresence.cpp
service/resource-encapsulation/src/resourceBroker/src/ResourceBroker.cpp
service/resource-encapsulation/src/resourceCache/include/DataCache.h