Skip to content
Snippets Groups Projects
Commit b0689498 authored by Claudio Hoffmann's avatar Claudio Hoffmann
Browse files

Platform_Win32Console: Actually free the formatted buffer returned by FormatMessageW -.-

parent ff923b32
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ void fatal_from_lasterror(
std::wstringstream message;
message << file << ":" << std::to_wstring(line) << ": " << formatted;
LocalFree(formatted);
fatal(message.str());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment