Fix usage of free for stack variable

Based on warning from pvs static analyzer (https://habr.com/ru/company/pvs-studio/blog/586700/)
This commit is contained in:
Evgeniy Dushistov 2021-11-07 20:43:41 +03:00 committed by GitHub
parent 946481c2aa
commit 39a9997fd0
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); callback(wmessage_buf, wmessage_buflen);
if (wmessage_buf != wbuf) if (wmessage_buf != wbuf)
std::free(wbuf); std::free(wmessage_buf);
if (message_buf != buf) if (message_buf != buf)
std::free(message_buf); std::free(message_buf);