From 1389bf98a8d1e25c15a1db1b7bccde31177fc724 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 1 Feb 2010 14:24:23 -0800 Subject: [PATCH] rados: fix delete[] vs delete --- src/osdc/rados_bencher.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdc/rados_bencher.h b/src/osdc/rados_bencher.h index 994e34ea70a0c..13af470d92951 100644 --- a/src/osdc/rados_bencher.h +++ b/src/osdc/rados_bencher.h @@ -203,7 +203,7 @@ int write_bench(Rados& rados, rados_pool_t pool, ++data->started; ++data->in_flight; dataLock.Unlock(); - delete name[slot]; + delete[] name[slot]; delete contents[slot]; name[slot] = newName; contents[slot] = newContents; @@ -227,7 +227,7 @@ int write_bench(Rados& rados, rados_pool_t pool, --data->in_flight; dataLock.Unlock(); completions[slot]-> release(); - delete name[slot]; + delete[] name[slot]; delete contents[slot]; } -- 2.39.5