diff options
author | Andreas Gampe <agampe@google.com> | 2015-05-04 18:25:23 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-05-04 18:25:23 -0700 |
commit | df2bb1f36c0d755f0bdb2b1562e52669f3de4a09 (patch) | |
tree | 8b8c5adaedfaab14dd21a07ac80cc6afac798805 /oatdump | |
parent | 25dcb2594a21a565ef82faa66a79bcf595c3a780 (diff) | |
download | art-df2bb1f36c0d755f0bdb2b1562e52669f3de4a09.zip art-df2bb1f36c0d755f0bdb2b1562e52669f3de4a09.tar.gz art-df2bb1f36c0d755f0bdb2b1562e52669f3de4a09.tar.bz2 |
ART: Fix double-free in oatdump
The ImageDumper doesn't own the OatDumperOptions.
Bug: 20818721
Change-Id: Iea11ada8fb6418b226d39b33c252a834c42e655e
Diffstat (limited to 'oatdump')
-rw-r--r-- | oatdump/oatdump.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index b9a3d37..949c2cb 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -2092,7 +2092,7 @@ class ImageDumper { gc::space::ImageSpace& image_space_; const ImageHeader& image_header_; std::unique_ptr<OatDumper> oat_dumper_; - std::unique_ptr<OatDumperOptions> oat_dumper_options_; + OatDumperOptions* oat_dumper_options_; DISALLOW_COPY_AND_ASSIGN(ImageDumper); }; |