| commit | cbbc33e91e6c5d11c7bed496159f662f790e1140 | [log] [tgz] |
|---|---|---|
| author | Matthew Maurer <mmaurer@google.com> | Fri Jun 11 16:49:48 2021 -0700 |
| committer | Matthew Maurer <mmaurer@google.com> | Sun Jun 13 02:27:40 2021 +0000 |
| tree | 6287001207066d84ece07cca6503114161d8c37b | |
| parent | 9c187a35a2aba822878d94d80493e067c3685f5f [diff] |
binder: rust: Fix dropped service memleak When `Binder<T>` objects die, they call the on_destroy for their class. On creation, the value was put into a Box. On destruction, `ptr::drop_in_place` was used to drop them. This means that while `Drop` was called on T, the box was not freed. Bug: 190517824 Test: Ran with showmap to confirm operations not leaking Merged-In: Ie9932cc67016eecff4d24ac0c8fcd1bc7df27b32 Change-Id: Ie9932cc67016eecff4d24ac0c8fcd1bc7df27b32