Skip to content

Commit

Permalink
Fix OpenTTD#10010: Memory leak in IConsolePrint in non-dedicated case
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Sep 9, 2022
1 parent 0355299 commit 8d9fee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string)

IConsoleWriteToLogFile(str);
IConsoleGUIPrint(colour_code, str);
free(str);
}

/**
Expand Down

0 comments on commit 8d9fee8

Please sign in to comment.