]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/perf_local.cc: fix alloc/dealloc mismatch
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 1 Jun 2015 21:44:16 +0000 (23:44 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 17 Jul 2015 08:50:07 +0000 (10:50 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/perf_local.cc

index ba3bc0fa086deade6ae1cc8783095726f8266950..2229f8b16b2fc962f2372a852c437089eb5b4f33 100644 (file)
@@ -775,7 +775,7 @@ double perf_timer()
     timer.cancel_event(c[i]);
   }
   uint64_t stop = Cycles::rdtsc();
-  delete c;
+  delete[] c;
   return Cycles::to_seconds(stop - start)/count;
 }