# HG changeset patch # User Kelly Wilson # Date 1244155565 21600 # Node ID 1f29cbc36bf5c9d12af26b5f51d5eca124e45a09 # Parent 39f4b01e200831ef555a451c9951cc1ae1d31f8e Fix memory leak in configfile.cpp...probably the only one in ldc! diff -r 39f4b01e2008 -r 1f29cbc36bf5 gen/configfile.cpp --- a/gen/configfile.cpp Thu Jun 04 16:06:35 2009 -0600 +++ b/gen/configfile.cpp Thu Jun 04 16:46:05 2009 -0600 @@ -58,7 +58,7 @@ #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);