diff options
author | George Burgess IV <gbiv@google.com> | 2016-10-11 15:42:29 -0700 |
---|---|---|
committer | George Burgess IV <gbiv@google.com> | 2016-10-13 15:32:33 -0700 |
commit | e8efec56f01983b98fbc4a1075a9e168b1fe1e9d (patch) | |
tree | 12db8ac822e461018b209e54a72bdc7d49726218 /tools/aapt2/diff/Diff.cpp | |
parent | c98b34bdce1fb1b43755af7fb8538efb0d0dc953 (diff) |
Fix static analyzer warnings.
frameworks/base/libs/androidfw/ResourceTypes.cpp:742:46: warning: Result
of 'calloc' is converted to a pointer of type 'char16_t *', which is
incompatible with sizeof operand type 'char16_t **'
mCache = (char16_t**)calloc(mHeader->stringCount,
sizeof(char16_t**));
frameworks/base/libs/androidfw/ResourceTypes.cpp:4359:28: warning:
Potential leak of memory pointed to by 'set'
return NO_MEMORY;
Bug: None
Test: Builds without the aforementioned warnings.
Change-Id: I1f84c1b9f4cba05f5cc7c3ae9fec1a07bc9cd8fe
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions