[PPM] fix Plugin Manager Destructor segment fault.
authorjunho13.lee <junho13.lee@samsung.com>
Fri, 9 Jan 2015 01:34:11 +0000 (10:34 +0900)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Thu, 22 Jan 2015 08:13:25 +0000 (08:13 +0000)
1. Modify PluginManager Destructor.
2. Remove "free(handle)" and add "dlclose(handle)".

Change-Id: Ib2fc492631914664eac76d0db0d78126e1cefd95
Signed-off-by: junho13.lee <junho13.lee@samsung.com>
(cherry picked from commit 6622fca961729a7bccc23ce54759b35b55c5fca9)
Reviewed-on: https://gerrit.iotivity.org/gerrit/204
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
service/protocol-plugin/plugin-manager/src/PluginManager.cpp

index 7e0f0ed..0f4034f 100644 (file)
@@ -44,7 +44,7 @@ PluginManager::PluginManager()
 PluginManager::~PluginManager(void)
 {
     destroy(pluginManagerImpl);
-    free(handle);
+    dlclose(handle);
 }
 
 int PluginManager::startPlugins(const std::string key, const std::string value)