summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-07-26 12:19:56 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-08-14 23:24:57 +0000
commit371c5e6343a5c093ec8637e5c38f16b9b939c658 (patch)
treedebff4faaba37c2a1c66bfdcaf8e291c5386a9cf /tools/aapt2/java/JavaClassGenerator.cpp
parentc0fbdf45d7c9826533186751a03c27e500cac78e (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 (cherry picked from commit 12ea937f8f22987654f7a04f025570c29876962c)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions