mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
librbd: fix delete[]
CID 716902: Non-array delete for scalars (DELETE_ARRAY) At (15): Deleting array variable "buf" with non-array delete in "delete buf". Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
08a29f9387
commit
b960c6238c
@ -1911,7 +1911,7 @@ reprotect_and_return_err:
|
||||
ldout(ictx->cct, 20) << "finished flattening" << dendl;
|
||||
|
||||
err:
|
||||
delete buf;
|
||||
delete[] buf;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user