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:
Sage Weil 2012-08-24 19:36:44 -07:00
parent 08a29f9387
commit b960c6238c

View File

@ -1911,7 +1911,7 @@ reprotect_and_return_err:
ldout(ictx->cct, 20) << "finished flattening" << dendl;
err:
delete buf;
delete[] buf;
return r;
}