ソースを参照

Fix false alarm from clang-tidy

Fix #1174
Milo Yip 8 年 前
コミット
e2d0437a9c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      include/rapidjson/internal/stack.h

+ 1 - 1
include/rapidjson/internal/stack.h

@@ -100,7 +100,7 @@ public:
     void ShrinkToFit() { 
         if (Empty()) {
             // If the stack is empty, completely deallocate the memory.
-            Allocator::Free(stack_);
+            Allocator::Free(stack_); // NOLINT (+clang-analyzer-unix.Malloc)
             stack_ = 0;
             stackTop_ = 0;
             stackEnd_ = 0;