Commit dee9dd00 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure we only decrement n_object when we truly deallocate

an object.
parent 6ffbdc7d
......@@ -792,9 +792,10 @@ HSH_DerefObjCore(struct dstat *ds, struct objcore **ocp)
BAN_DestroyObj(oc);
AZ(oc->ban);
if (oc->methods != NULL)
if (oc->methods != NULL) {
oc_freeobj(oc);
ds->n_object--;
ds->n_object--;
}
FREE_OBJ(oc);
ds->n_objectcore--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment