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 | 001bc4b7564af936fc9316b62d6ebc9d646282f5 (patch) | |
| tree | 4a1f757a121dbf0f4869c89463ce911ff431edbd /libutils/Unicode.cpp | |
| parent | 93e9920452018856684a7ef95cdff1eca12bb0a4 (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/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions
