From 690ca32c0c34b9fc4857e007afd79ff6d4359846 Mon Sep 17 00:00:00 2001 From: Kelly Wilson Date: Thu, 4 Jun 2009 16:46:05 -0600 Subject: [PATCH] Fix memory leak in configfile.cpp...probably the only one in ldc! --- gen/configfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/configfile.cpp b/gen/configfile.cpp index 251501b2..4e9c33f3 100644 --- a/gen/configfile.cpp +++ b/gen/configfile.cpp @@ -58,7 +58,7 @@ bool ConfigFile::read(const char* argv0, void* mainAddr, const char* filename) #if _WIN32 char buf[256]; GetModuleFileName(NULL, buf, 256); - p = *(new std::string(buf)); + p = buf; #else // 4) try next to the executable p = sys::Path::GetMainExecutable(argv0, mainAddr);