summaryrefslogtreecommitdiffstats
path: root/runtime/trace.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-04-27 15:19:41 -0700
committerChristopher Ferris <cferris@google.com>2015-05-04 12:10:07 -0700
commit241a9588c6d7d0fcb4c92da40c7141863930083a (patch)
tree4a6868893dc742f6322775d198a2305f645f2f3f /runtime/trace.h
parenta93b104b47da67eaa50f8a6b7280cc6c438ef37b (diff)
downloadart-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.h2
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_;