You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!m_pFile->write(buf, bufIndex*sizeof(utf16))) return0;
If the condition !m_pFile->write(buf, bufIndex * sizeof(utf16)) evaluates to true, the delete[] operation will never be executed, potentially leading to a memory leak. Additionally, throwing exceptions might also trigger memory leak scenarios.
The text was updated successfully, but these errors were encountered:
notepad-plus-plus/PowerEditor/src/Utf8_16.cpp
Line 361 in b62b77b
If the condition !m_pFile->write(buf, bufIndex * sizeof(utf16)) evaluates to true, the delete[] operation will never be executed, potentially leading to a memory leak. Additionally, throwing exceptions might also trigger memory leak scenarios.
The text was updated successfully, but these errors were encountered: