diff --git a/src/cmd/gz.cc b/src/cmd/gz.cc index cdd559c7..25109c9e 100644 --- a/src/cmd/gz.cc +++ b/src/cmd/gz.cc @@ -33,7 +33,7 @@ extern "C" char *gzVersion() extern "C" const char *configPath() { std::string configPath = gz::launch::getPluginInstallPath(); - return configPath.c_str(); + return strdup(configPath.c_str()); } //////////////////////////////////////////////////