From e3f98ac307226942862182077b90bf3809e7ce3a Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Fri, 26 Apr 2013 13:37:21 -0800 Subject: Fixing the broken valgrind build. review:28002 lgtm:0 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15957] --- CHANGES | 1 + src/cuda-sim/cuda-sim.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index fa9cde3..7b40c42 100644 --- a/CHANGES +++ b/CHANGES @@ -28,6 +28,7 @@ Version 3.2.1+edits (development branch) versus 3.2.1 is not implemented. - Removed the use of gcc in compilation and the need for a bunch of unnecessary 'extern "c"' statements. + - Fixed a mismatched new[] delete[] Version 3.2.1 versus 3.2.0 - Added kernel name and launch uids to performance statistics log. - Added l2_cache_config class to extend baseline cache_config. Allows for diff --git a/src/cuda-sim/cuda-sim.h b/src/cuda-sim/cuda-sim.h index 261d458..96953fb 100644 --- a/src/cuda-sim/cuda-sim.h +++ b/src/cuda-sim/cuda-sim.h @@ -92,8 +92,8 @@ public: } ~functionalCoreSim(){ warp_exit(0); - delete m_liveThreadCount; - delete m_warpAtBarrier; + delete[] m_liveThreadCount; + delete[] m_warpAtBarrier; } //! executes all warps till completion void execute(); -- cgit v1.3