[master] e31cc250a Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Oct 15 15:33:05 UTC 2019


commit e31cc250a16190762e257bdd8df8a02062e55e34
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Oct 15 14:28:49 2019 +0200

    Polish
    
    I was in the neighborhood...

diff --git a/bin/varnishd/cache/cache_req.c b/bin/varnishd/cache/cache_req.c
index b13440e47..8fb6ec7f2 100644
--- a/bin/varnishd/cache/cache_req.c
+++ b/bin/varnishd/cache/cache_req.c
@@ -167,14 +167,12 @@ Req_Release(struct req *req)
 	AZ(req->vcl);
 	if (req->vsl->wid)
 		VSL_End(req->vsl);
-	sp = req->sp;
-	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
+	TAKE_OBJ_NOTNULL(sp, &req->sp, SESS_MAGIC);
 	pp = sp->pool;
 	CHECK_OBJ_NOTNULL(pp, POOL_MAGIC);
 	CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
 	MPL_AssertSane(req);
 	VSL_Flush(req->vsl, 0);
-	req->sp = NULL;
 	req->topreq = NULL;
 	MPL_Free(pp->mpl_req, req);
 }


More information about the varnish-commit mailing list