From b0689498a2c331accbe993cc1ad80d8a04c797b4 Mon Sep 17 00:00:00 2001 From: Claudio Hoffmann <hoffmanncl72341@th-nuernberg.de> Date: Mon, 18 Jan 2021 14:43:05 +0100 Subject: [PATCH] Platform_Win32Console: Actually free the formatted buffer returned by FormatMessageW -.- --- Platform_Win32Console.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Platform_Win32Console.cpp b/Platform_Win32Console.cpp index 52ffdc3..70f6599 100644 --- a/Platform_Win32Console.cpp +++ b/Platform_Win32Console.cpp @@ -54,6 +54,7 @@ void fatal_from_lasterror( std::wstringstream message; message << file << ":" << std::to_wstring(line) << ": " << formatted; + LocalFree(formatted); fatal(message.str()); } -- GitLab