Skip to content

Commit

Permalink
NOT FOR PRODUCTION: Peace of mind for Martin
Browse files Browse the repository at this point in the history
  • Loading branch information
nigoroll committed Aug 21, 2023
1 parent 3d90332 commit 542fc0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/varnishd/storage/storage_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ sml_objfree(struct worker *wrk, struct objcore *oc)
CHECK_OBJ_NOTNULL(st, STORAGE_MAGIC);
FINI_OBJ(o);

// NOT FOR PRODUCTION
if (oc->boc != NULL && (oc->flags & OC_F_PRIVATE) == 0)
assert(oc->refcnt >= 2);

if (oc->boc != NULL)
sml_bocfini(stv, oc->boc);
else if (stv->lru != NULL)
Expand Down

0 comments on commit 542fc0a

Please sign in to comment.