objectcacher: fix bh leak on discard

Fixes: #2950
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-08-15 18:42:56 -07:00
parent b97931f43b
commit c6ae5e29a1

View File

@ -409,6 +409,7 @@ void ObjectCacher::Object::discard(loff_t off, loff_t len)
p++;
oc->bh_remove(this, bh);
delete bh;
}
}