mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-10 16:45:43 -04:00
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:
parent
946481c2aa
commit
39a9997fd0
@ -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…
x
Reference in New Issue
Block a user