commit | b37668eb566122ea061596613bef3c34921c98fd | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Thu Aug 30 16:22:52 2018 -0700 |
committer | Chih-hung Hsieh <chh@google.com> | Mon Sep 24 16:30:09 2018 +0000 |
tree | 90477cf33b360083789cf690d8c9bbc22b0449c5 | |
parent | fd53bf2f59071766f6f2ea925a6718919eac2502 [diff] |
Fix static analysis warnings of memory leaks. * False positive static analyzer Warnings: AString.cpp:134:11: Potential memory leak [clang-analyzer-unix.Malloc] Potential leak of memory pointed to by '___res.mData' in calls to CHECK_LT(start, mSize) * Simplify AString::clear to work with clang static analyzer. * Simplify CHECK_OP macros to reduce copying of ___res. Test: make with WITH_TIDY=1 Change-Id: I7fde7d4d932b37609893eb6f5c529d6727b0da7e