Files
clang-p2996/compiler-rt/lib/xray/xray_profiling.cpp
Wu, Yingcong 17718a2cff Move close() to the proper else block
`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`.

Reviewed By: xgupta

Differential Revision: https://reviews.llvm.org/D145039
2023-03-01 19:09:11 +05:30

18 KiB