commit | c90ca48a7c5981f1ebcb40ccab6e2ebbafe4c669 | [log] [tgz] |
---|---|---|
author | Henrik Baard <henrik.baard@sonymobile.com> | Tue Jun 23 09:36:36 2015 +0200 |
committer | Narayan Kamath <narayan@google.com> | Wed Jul 01 13:30:26 2015 +0000 |
tree | 40a412c6ab283623359fe528dc1c8f262a348ef9 | |
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