commit | 041f64e80fa5f2013cbea562e7591213fd7db5d9 | [log] [tgz] |
---|---|---|
author | Vic Yang <victoryang@google.com> | Fri Sep 27 21:03:09 2019 -0700 |
committer | Vic Yang <victoryang@google.com> | Fri Sep 27 21:07:00 2019 -0700 |
tree | 634088f58286344a659ee722ff90e53bcdc2d4cc | |
parent | b8ade01a81c663f1d874ad9b849f26a76ca42470 [diff] |
Fix memory leak in String16 Newly allocated SharedBuffer already has reference count 1, so we should not call acquire(). Bug: 141764153 Test: Run String16Test.* with ASan that was able to detect the leak without this change. Change-Id: Ib8b1b707b028386d717414d8c5ec5ea7b4b59464