diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-10-01 08:05:54 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-10-01 08:05:54 -0400 |
commit | 6498ccddb2f13a6fac6a210372b1aa86873507b9 (patch) | |
tree | d8fa5ac5e99c01df46d71c3c87e87d2114bfe088 /src/mem/ruby/system/System.cc | |
parent | b520223699f51562140b8cc4a922eae64dffb3e3 (diff) | |
download | gem5-6498ccddb2f13a6fac6a210372b1aa86873507b9.tar.xz |
misc: Fix issues identified by static analysis
Another bunch of issues addressed.
Diffstat (limited to 'src/mem/ruby/system/System.cc')
-rw-r--r-- | src/mem/ruby/system/System.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/system/System.cc b/src/mem/ruby/system/System.cc index dad5b8aa6..0675366d1 100644 --- a/src/mem/ruby/system/System.cc +++ b/src/mem/ruby/system/System.cc @@ -153,7 +153,7 @@ RubySystem::writeCompressedTrace(uint8_t *raw_data, string filename, if (gzclose(compressedMemory)) { fatal("Close failed on memory trace file '%s'\n", filename); } - delete raw_data; + delete[] raw_data; } void |