diff options
author | Akilesh Kailash <akailash@google.com> | 2021-04-01 19:19:50 +0000 |
---|---|---|
committer | Akilesh Kailash <akailash@google.com> | 2021-04-02 00:49:18 +0000 |
commit | e722a1b169302cec30fd7e7c70990ce7232309ee (patch) | |
tree | 4a1f757a121dbf0f4869c89463ce911ff431edbd /libutils/RefBase.cpp | |
parent | 527cdd4617cd7545dc9d4b5c7fddaf1c14060d7e (diff) |
libsnapshot:snapuserd: Fix memory leak
When worker threads were created, snapuserd was converted to a
shared_pointer. Earlier, memory was forcefully released
by setting snapuserd to nullptr which worked as it
was a unique pointer. Now, every worker thread holds
a reference. Clear the vector once all the worker
threads are terminated.
Test: Apply OTA and verify memory is released after OTA is applied
Bug: 183652708
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I256d26d98b02ad599aff49b92192226546c59b17
Diffstat (limited to 'libutils/RefBase.cpp')
0 files changed, 0 insertions, 0 deletions