LogWriter::Close(LW) is outside the null check if-else block, which, when LW == nullptr, will causing a NULL dereference.
I think the close() means to be in else block, which is when LW != nullptr.
Details
Details
- Reviewers
xgupta - Commits
- rG17718a2cff7d: Move close() to the proper else block
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo