We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sicne #9978 (e6aab70)
No memory leaks
IConsoleLine previously called free() on the allocated buffer passed to it in its constructor.
Now it makes a copy of a temporary std::string made from the string allocation. The string allocation is then leaked.
See IConsolePrint.
A leak detector such as AddressSanitizer can be used.
The text was updated successfully, but these errors were encountered:
Fix OpenTTD#10010: Memory leak in IConsolePrint in non-dedicated case
8d9fee8
0a7ffae
No branches or pull requests
Version of OpenTTD
Sicne #9978 (e6aab70)
Expected result
No memory leaks
Actual result
IConsoleLine previously called free() on the allocated buffer passed to it in its constructor.
Now it makes a copy of a temporary std::string made from the string allocation. The string allocation is then leaked.
Steps to reproduce
See IConsolePrint.
A leak detector such as AddressSanitizer can be used.
The text was updated successfully, but these errors were encountered: