Fix for:
[src/test/cls_rbd/test_cls_rbd.cc:82]: (error) Mismatching allocation
and deallocation: b
[src/test/cls_rbd/test_cls_rbd.cc:95]: (error) Mismatching allocation
and deallocation: b
[src/test/cls_rbd/test_cls_rbd.cc:97]: (error) Mismatching allocation
and deallocation: b
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
size_t l = 4 << 20;
char *b = random_buf(l);
inbl.append(b, l);
- delete b;
+ delete [] b;
ASSERT_EQ(l, inbl.length());
// copyup to nonexistent object should create new object
bufferlist inbl2;
b = random_buf(l);
inbl2.append(b, l);
- delete b;
+ delete [] b;
ASSERT_EQ(l, inbl2.length());
// should still succeed