Free localDataPath after done using it
authorHyungju Lee <leee.lee@samsung.com>
Wed, 19 Dec 2018 01:08:03 +0000 (10:08 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Wed, 19 Dec 2018 23:26:59 +0000 (08:26 +0900)
Change-Id: I336bb29ed005c5a750176a064ef4e7d837c73046

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index b0f78c5..c27f213 100644 (file)
@@ -487,7 +487,10 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i
 
                if (!setEnvironmentVariable(u"XDG_DATA_HOME", envval)) {
                        _ERR("Failed to set XDG_DATA_HOME");
+
                }
+
+               free(localDataPath);
        }
 
        pluginBeforeExecute();