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>
PluginManager::~PluginManager(void)
{
destroy(pluginManagerImpl);
- free(handle);
+ dlclose(handle);
}
int PluginManager::startPlugins(const std::string key, const std::string value)