commit | ccb0019c9c60617dcd420c6c92a931e1d82c4920 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Sat Feb 17 23:16:39 2018 -0800 |
committer | George Burgess IV <gbiv@google.com> | Sun Feb 18 21:57:10 2018 -0800 |
tree | 2933beeccfa8ea7f51d51d65f996b5f475ccf867 | |
parent | b2a9999a6d1bb804f06902404879bdbe55ed0ec3 [diff] |
Fix a memory leak dex_file is meant to take ownership of `container`. There's at least one path (`error_msg = "Invalid or truncated dex file";`) where `container` never gets passed along to a dex_file. Caught by the static analyzer: art/runtime/dex/dex_file_loader.cc:406:45: warning: Potential memory leak Bug: None Test: Reran the analyzer. Memory leak complaints are gone. Change-Id: Ib57008e444d32b366bb2beabec8e39b8e84fd9db