Commit 1a29b85e authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Remove object from LRU list before freeing it; this does not entirely

eliminate races between the LRU code and the expiry code, but it does
make them a lot less likely.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1712 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 865004db
......@@ -259,6 +259,7 @@ HSH_Deref(struct object *o)
if (o->vary != NULL)
free(o->vary);
LRU_Remove(o);
HSH_Freestore(o);
FREE_OBJ(o);
VSL_stats->n_object--;
......
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