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 Aug 1, 2023
1 parent f20ddb3 commit 8773a28
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 8773a28

Please sign in to comment.