diff --git a/src/test/osd/hitset.cc b/src/test/osd/hitset.cc index 6234bdaba233f..41267ea4c6e18 100644 --- a/src/test/osd/hitset.cc +++ b/src/test/osd/hitset.cc @@ -15,10 +15,14 @@ #include class HitSetTestStrap { -public: +protected: HitSet *hitset; +public: explicit HitSetTestStrap(HitSet *h) : hitset(h) {} + ~HitSetTestStrap() { + delete hitset; + } void fill(unsigned count) { char buf[50];