Skip to content

Commit

Permalink
Fix leak when the log sink constructor throws
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed May 4, 2020
1 parent 256f1d2 commit c7d3ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions windows/nsis-plugins/src/log/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Utf8FileLogSink::Utf8FileLogSink(const std::wstring &file, bool append, bool flu

if (FALSE == seekStatus)
{
CloseHandle(m_logfile);
THROW_WINDOWS_ERROR(GetLastError(), "Seek to end offset in existing log file");
}
}
Expand Down

0 comments on commit c7d3ebc

Please sign in to comment.