diff options
author | Henrik Baard <henrik.baard@sonymobile.com> | 2015-06-23 09:36:36 +0200 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-07-01 13:30:26 +0000 |
commit | c90ca48a7c5981f1ebcb40ccab6e2ebbafe4c669 (patch) | |
tree | 40a412c6ab283623359fe528dc1c8f262a348ef9 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3b43f862d09cf420a36ac372edcfddd4c4a68aa5 (diff) |
Remove memory leak in PersistentDataBlockService jni
When calling the methods
com_android_server_PersistentDataBlockService_getBlockDeviceSize()
com_android_server_PersistentDataBlockService_wipe()
memory is leaked because string created by
GetStringUTFChars() is not released.
Use ScopedUtfChars instead to ensure that memory is released.
Change-Id: I880a6d66a4824778b411b858774b8ffa009c1e17
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions