From c6ae5e29a13a9bd5a3dc8001bd193e97d21e3208 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 15 Aug 2012 18:42:56 -0700 Subject: [PATCH] objectcacher: fix bh leak on discard Fixes: #2950 Signed-off-by: Sage Weil --- src/osdc/ObjectCacher.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc index f20506b29ec..a46ffb3bece 100644 --- a/src/osdc/ObjectCacher.cc +++ b/src/osdc/ObjectCacher.cc @@ -409,6 +409,7 @@ void ObjectCacher::Object::discard(loff_t off, loff_t len) p++; oc->bh_remove(this, bh); + delete bh; } }