commit | 6ea1c5c26cd4f3a0e5ccd2d52f6c8a1cc34493ec | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Dec 08 17:15:50 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Dec 08 17:18:12 2015 -0800 |
tree | ae8a6baaa6b840d78afb9c102445cec59f1cd66a | |
parent | c18b17783a7ea301408c119996088533b1eba4f0 [diff] |
Fix allocation count The realloc case in continueWrite should not increment the counter, the pointer passed to realloc is guaranteed to be non-NULL so the total number of allocations will not have changed. When realloc is called in restartWrite mData has not been checked against NULL, increment the counter if it was NULL. Bug: 26086286 Change-Id: I4c8af450cca1868b91793c0c5f0d8c4b4b5badbe