fix bugs which found by coverity
[platform/core/dotnet/launcher.git] / NativeLauncher / util / path_manager.cc
index b207209..5df09ba 100644 (file)
@@ -71,6 +71,7 @@ int initializePathManager(const std::string& runtimeDir, const std::string& tize
                if (tmp) {
                        __dllPath->tizenfx_dir = std::string(tmp);
                        _DBG("Device API Directory is set by vconf : %s", tmp);
+                       free(tmp);
                } else {
                        __dllPath->tizenfx_dir = absolutePath(__DEVICE_API_DIR);
                }