mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
osdc/ObjectCacher: fix BufferHead leak on ENOENT
This was detected by fsstress over ceph-fuse under valgrind. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
8a03d50146
commit
7602a05576
@ -703,6 +703,7 @@ void ObjectCacher::bh_read_finish(int64_t poolid, sobject_t oid, loff_t start,
|
||||
if (r == -ENOENT) {
|
||||
ldout(cct, 10) << "bh_read_finish removing " << *bh << dendl;
|
||||
bh_remove(ob, bh);
|
||||
delete bh;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user