Fix usage of `free` for stack variable

Based on warning from pvs static analyzer (https://habr.com/ru/company/pvs-studio/blog/586700/)
pull/2711/head
Evgeniy Dushistov 4 years ago committed by GitHub
parent 946481c2aa
commit 39a9997fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save