Fix false alarm from clang-tidy

Fix #1174
This commit is contained in:
Milo Yip 2018-02-12 17:38:46 +08:00
parent 82b5c42567
commit e2d0437a9c

View File

@ -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;