diff options
author | Mikael Gullstrand <mikael.gullstrand@sonymobile.com> | 2013-05-14 13:15:34 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2013-06-07 13:56:47 +0200 |
commit | 08bfdd7d88c929964873bb0e311bcae0edb5ebc2 (patch) | |
tree | c9b7ee6f2af01e86241ff913280bdc129e717c85 /libdvm/src/main/java | |
parent | 0897c6055311bf665365cbb8cae46aadc18d4d45 (diff) | |
download | libcore-08bfdd7d88c929964873bb0e311bcae0edb5ebc2.zip libcore-08bfdd7d88c929964873bb0e311bcae0edb5ebc2.tar.gz libcore-08bfdd7d88c929964873bb0e311bcae0edb5ebc2.tar.bz2 |
Fix memory leaks in org_apache_harmony_xml_ExpatParser
The method expandInternedStringBucket(...) creates a new bucket
but the old bucket is never freed, even though the function doc
claims that it does. To solve this problem the old bucket is
freed when the new one has been created successfully.
Also this commit fixes two possible memory leaks when a
jniThrowOutOfMemoryError is thrown, where the internedString
also needs to be freed.
Change-Id: Ic80a35a2b4ec8f93ddc006aca5609a5ffe74d659
Diffstat (limited to 'libdvm/src/main/java')
0 files changed, 0 insertions, 0 deletions