Commit b97eab53 authored by Geoff Simmons's avatar Geoff Simmons

bugfix freeing the backend list at VCL fini

parent fe68db1d
......@@ -70,8 +70,12 @@ free_belist(void *priv)
CAST_OBJ_NOTNULL(belist, priv, BELIST_MAGIC);
AN(belist->behead);
VTAILQ_FOREACH(bentry, belist->behead, bentry)
bentry = VTAILQ_FIRST(belist->behead);
while (bentry != NULL) {
struct bentry *next = VTAILQ_NEXT(bentry, bentry);
FREE_OBJ(bentry);
bentry = next;
}
FREE_OBJ(belist);
}
......
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