From: Adam Kupczyk Date: Thu, 25 Jul 2024 12:42:43 +0000 (+0000) Subject: os/bluestore: Fix unbalanced new[]/delete[] in read_bdev_label functions X-Git-Tag: v19.2.1~271^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F59106%2Fhead;p=ceph.git os/bluestore: Fix unbalanced new[]/delete[] in read_bdev_label functions Signed-off-by: Adam Kupczyk (cherry picked from commit 64f6b5d1d7ecab9f17d6d32424fdab536b7a5a93) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 0f659d951b5..30023e81cb3 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -6583,7 +6583,7 @@ int BlueStore::_read_bdev_label( dout(10) << __func__ << " position=0x" << std::hex << disk_position << std::dec << dendl; ceph_assert(bdev); bufferlist bl; - unique_ptr buf(new char[BDEV_LABEL_BLOCK_SIZE]); + unique_ptr buf(new char[BDEV_LABEL_BLOCK_SIZE]); uint64_t dev_size = bdev->get_size(); if (dev_size < disk_position + BDEV_LABEL_BLOCK_SIZE) { dout(10) << __func__ << " position=0x" << std::hex << disk_position