[master] a420b7f Sigh... almost all fun in C gets outlawed these days...

Poul-Henning Kamp phk at FreeBSD.org
Thu Oct 22 17:57:44 CEST 2015


commit a420b7fea11ee823535c1031823428bf2ed97209
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Oct 22 15:57:14 2015 +0000

    Sigh... almost all fun in C gets outlawed these days...

diff --git a/bin/varnishd/cache/cache_ban_build.c b/bin/varnishd/cache/cache_ban_build.c
index eb10c30..bec9062 100644
--- a/bin/varnishd/cache/cache_ban_build.c
+++ b/bin/varnishd/cache/cache_ban_build.c
@@ -93,7 +93,7 @@ BAN_Abandon(struct ban_proto *bp)
 	CHECK_OBJ_NOTNULL(bp, BAN_PROTO_MAGIC);
 	VSB_delete(bp->vsb);
 	if (bp->err != NULL && bp->err != ban_build_err_no_mem)
-		REPLACE(bp->err, NULL);
+		free(bp->err);
 	FREE_OBJ(bp);
 }
 



More information about the varnish-commit mailing list