Skip to content

Commit

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

if (oc->boc != NULL)
assert(oc->refcnt >= 2);

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

0 comments on commit 2568eb3

Please sign in to comment.