Actions
Bug #44195
closednew a librbd::ImageCtx cnstruct, but no delete
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
02/19/2020
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
code
----------------------------------------
rbd_open(...)
{
librbd::ImageCtx *ictx = new librbd::ImageCtx(...)
...
int r = ictx->state->open(0);
if (r >= 0) {
*image = (rbd_image_t)ictx;
}
...
return r;
}
----------------------------------
if ictx->state->open failed, *ictx was memleak
Actions