OSDN Git Service

Fix app image memory leak
authorMathieu Chartier <mathieuc@google.com>
Fri, 12 Feb 2016 00:27:18 +0000 (16:27 -0800)
committerMathieu Chartier <mathieuc@google.com>
Fri, 12 Feb 2016 18:24:00 +0000 (10:24 -0800)
commit6cc91e4d8c5956d3c4323b416f2a344bf848f741
treebb2a03baa91ff79745740ce4db15d0f781953389
parent9a3a10ac819f456f7bcc626046342a845902fe96
Fix app image memory leak

There was a memory leak if we failed to add an image space, this
was caused by releasing ownership without adding it to the heap.

Bug: 22858531

(cherry picked from commit bd064ea2269b23360e32e8139c22d5993ddc385b)

Change-Id: Ib45c0140b82cee5da04ed4a9f101f7c554cb25da
runtime/oat_file_manager.cc