Charj Arrays: Fix mismatched new[]/delete
authorPhil Miller <mille121@illinois.edu>
Mon, 8 Nov 2010 01:34:32 +0000 (19:34 -0600)
committerPhil Miller <mille121@illinois.edu>
Mon, 8 Nov 2010 01:34:32 +0000 (19:34 -0600)
src/langs/charj/src/charj/libs/Array.h

index 59c44c2a1e1dc2830ac43d1cb6c025c57104f436..a7351b1349dd67558652992048fd606d91c25f0a 100644 (file)
@@ -119,7 +119,7 @@ namespace CharjArray {
     }
 
     ~Array() {
-      delete block;
+      delete[] block;
     }
 
     /*type* operator[] (const Domain<dims> &domain) {