r3912 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Mar 11 14:31:45 CET 2009
Author: phk
Date: 2009-03-11 14:31:45 +0100 (Wed, 11 Mar 2009)
New Revision: 3912
Modified:
trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Do not leak objcores in exception paths.
Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c 2009-03-11 13:15:09 UTC (rev 3911)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c 2009-03-11 13:31:45 UTC (rev 3912)
@@ -639,6 +639,7 @@
VTAILQ_REMOVE(&oh->objcs, oc, list);
Lck_Unlock(&oh->mtx);
assert(oh->refcnt > 0);
+ FREE_OBJ(oc);
if (hash->deref(oh))
return;
HSH_DeleteObjHead(sp->wrk, oh);
More information about the varnish-commit
mailing list