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

Add a defensive assert

parent 9afde92d
......@@ -68,6 +68,7 @@ default_oc_freeobj(struct worker *wrk, struct objcore *oc)
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(oc, OBJCORE_MAGIC);
CHECK_OBJ_NOTNULL(oc->stobj, STOREOBJ_MAGIC);
ObjSlim(wrk, oc);
CAST_OBJ_NOTNULL(o, oc->stobj->priv, OBJECT_MAGIC);
o->magic = 0;
......
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