Merge pull request #2711 from Dushistov/patch-1

Fix usage of `free` for stack variable
This commit is contained in:
Connor McLaughlin 2021-11-08 12:24:38 +10:00 committed by GitHub
commit b157540ec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ static ALWAYS_INLINE void FormatLogMessageAndPrintW(const char* channelName, con
callback(wmessage_buf, wmessage_buflen);
if (wmessage_buf != wbuf)
std::free(wbuf);
std::free(wmessage_buf);
if (message_buf != buf)
std::free(message_buf);