Ruby System, Cache Recorder: Use delete [] for trace vars
authorJoel Hestness <jthestness@gmail.com>
Mon, 8 Apr 2013 01:31:15 +0000 (20:31 -0500)
committerJoel Hestness <jthestness@gmail.com>
Mon, 8 Apr 2013 01:31:15 +0000 (20:31 -0500)
commit3b02210713a3b8f46750638003784115a738ec78
treed3787d1380716d3fdb03fc4c98b6bc8ebe3ac699
parent7fb55b98cc63e8c08a198ae8bc9396ae96bfabe5
Ruby System, Cache Recorder: Use delete [] for trace vars

The cache trace variables are array allocated uint8_t* in the RubySystem and
the Ruby CacheRecorder, but the code used delete to free the memory, resulting
in Valgrind memory errors. Change these deletes to delete [] to get rid of the
errors.
src/mem/ruby/recorder/CacheRecorder.cc
src/mem/ruby/system/System.cc