diff --git a/lib/comgr/src/comgr-env.cpp b/lib/comgr/src/comgr-env.cpp index 6a608ea..1d88584 100644 --- a/lib/comgr/src/comgr-env.cpp +++ b/lib/comgr/src/comgr-env.cpp @@ -137,9 +137,10 @@ std::string getComgrInstallPathFromExecutable() { return ""; } + std::string rv = StripGNUInstallLibDir(Path).str(); fclose(ProcMaps); free(Line); - return StripGNUInstallLibDir(Path).str(); + return rv; } }