Changeset 3ea28b


Ignore:
Timestamp:
2010-02-01 10:00:13 (4 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
master, 3.0, 4.0, experimental-ims
Children:
3ba63c
Parents:
95378f
git-author:
Poul-Henning Kamp <phk@…> (2010-02-01 10:00:13)
git-committer:
Poul-Henning Kamp <phk@…> (2010-02-01 10:00:13)
Message:

Don't nuke the objcore object pointer when we deref the last
object on the LRU list, we may not be holding the last reference.

Fixes: #634

Tip of hat to: Matt Page for execellent diagnosis & patch.

git-svn-id:  http://www.varnish-cache.org/svn/trunk/varnish-cache@4516 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_expire.c

    rc1f856 r3ea28b  
    325325{ 
    326326        struct objcore *oc; 
     327        struct object *o; 
    327328 
    328329        /* 
     
    362363 
    363364        WSL(sp->wrk, SLT_ExpKill, 0, "%u LRU", oc->obj->xid); 
    364         HSH_Deref(sp->wrk, &(oc->obj)); 
     365        o = oc->obj; 
     366        HSH_Deref(sp->wrk, &o); 
    365367        return (1); 
    366368} 
Note: See TracChangeset for help on using the changeset viewer.