Skip to content

Commit e2d0437

Browse files
committed
Fix false alarm from clang-tidy
Fix Tencent#1174
1 parent 82b5c42 commit e2d0437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/internal/stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Stack {
100100
void ShrinkToFit() {
101101
if (Empty()) {
102102
// If the stack is empty, completely deallocate the memory.
103-
Allocator::Free(stack_);
103+
Allocator::Free(stack_); // NOLINT (+clang-analyzer-unix.Malloc)
104104
stack_ = 0;
105105
stackTop_ = 0;
106106
stackEnd_ = 0;

0 commit comments

Comments
 (0)