CID
1188145 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable "cb" going out of scope leaks the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
ctx->obc,
&out_attrs,
true);
- if (result < 0)
+ if (result < 0) {
+ if (cb) {
+ delete cb;
+ }
return result;
+ }
cursor.attr_complete = true;
dout(20) << " got attrs" << dendl;
}
result = pgbackend->objects_read_sync(
oi.soid, cursor.data_offset, left, &bl);
if (result < 0)
+ if (cb) {
+ delete cb;
+ }
return result;
}
assert(result <= left);