summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-02-09 08:12:14 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:04 -0700
commitdb6ea8d4b4a2262e4d830c034a7dd220b7669ffe (patch)
treeced208ac01f506232a533add59165cd9d527ed66 /src/gpgpu-sim/gpu-cache.cc
parente8b9773363a5543374d0951877f345fc4e7f917c (diff)
Fixing a minor bug - if you new [] you have to delete []
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15216]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index 0b91727..49c7991 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -47,7 +47,7 @@ unsigned l2_cache_config::set_index(new_addr_type addr) const{
tag_array::~tag_array()
{
- delete m_lines;
+ delete[] m_lines;
}
tag_array::tag_array( const cache_config &config,