Fix memory leak in configfile.cpp...probably the only one in ldc!

This commit is contained in:
Kelly Wilson
2009-06-04 16:46:05 -06:00
parent d21e61b8b8
commit 690ca32c0c

View File

@@ -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);