diff options
author | Christopher Ferris <cferris@google.com> | 2015-04-27 15:19:41 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2015-05-04 12:10:07 -0700 |
commit | 241a9588c6d7d0fcb4c92da40c7141863930083a (patch) | |
tree | 4a6868893dc742f6322775d198a2305f645f2f3f /runtime/trace.h | |
parent | a93b104b47da67eaa50f8a6b7280cc6c438ef37b (diff) | |
download | art-241a9588c6d7d0fcb4c92da40c7141863930083a.zip art-241a9588c6d7d0fcb4c92da40c7141863930083a.tar.gz art-241a9588c6d7d0fcb4c92da40c7141863930083a.tar.bz2 |
Fix mismatched new[]/delete.
Another two cases where a new[] is used but only a delete occurs.
Bug: 18202869
Change-Id: If68264807150f3a9783e44ef8823cc366bff8df2
Diffstat (limited to 'runtime/trace.h')
-rw-r--r-- | runtime/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/trace.h b/runtime/trace.h index 06824b8..df6d5e7 100644 --- a/runtime/trace.h +++ b/runtime/trace.h @@ -189,7 +189,7 @@ class Trace FINAL : public instrumentation::InstrumentationListener { std::unique_ptr<File> trace_file_; // Buffer to store trace data. - std::unique_ptr<uint8_t> buf_; + std::unique_ptr<uint8_t[]> buf_; // Flags enabling extra tracing of things such as alloc counts. const int flags_; |