Fix for defects detected by static analysis in Resource Broker.
authorjyong2.kim <jyong2.kim@samsung.com>
Mon, 29 Feb 2016 04:14:25 +0000 (13:14 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 29 Feb 2016 05:59:43 +0000 (05:59 +0000)
fix double time of deallocated memory.

Change-Id: I8905f1b85199c8bf0f26203f78b5abb755d2f425
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5253
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/resource-encapsulation/src/resourceBroker/src/ResourceBroker.cpp

index 79f9e9d577339cceb5d5789ad87a56aa2ea6f813..2e3c3f9ef20bf4ed022ec011516bb3f401892720 100644 (file)
@@ -38,7 +38,6 @@ namespace OIC
             {
                 OIC_LOG_V(DEBUG, BROKER_TAG, "clear the ResourcePresenceList.");
                 s_presenceList->erase(s_presenceList->begin(), s_presenceList->end());
-                s_presenceList->clear();
             }
             if(s_brokerIDMap != nullptr)
             {