commit | 12ea937f8f22987654f7a04f025570c29876962c | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Jul 26 12:19:56 2019 -0700 |
committer | John Reck <jreck@google.com> | Fri Jul 26 23:19:05 2019 +0000 |
tree | 2f76960a76556ccb2ca7fbd7577716a00047e216 | |
parent | 5818412305a0c2fbaa399874ca00d479dd20d135 [diff] |
Fix regression in PFD#fromData Don't rely on the GC to clean up FD resources when they can just be cleaned up immediately. We know the MemoryFile isn't going to be used any further, so just close it. Bug: 138323667 Test: Repro steps in bug. Verified addresses FD leak in system_server from repeatedly opening & closing settings. Change-Id: Ic82006c9cb48f580aaad942c4679e774186382c9