[6.0] 631b0f747 Destroy the childs Param and Panicstr VSMs properly

Martin Blix Grydeland martin at varnish-software.com
Fri Oct 18 13:23:06 UTC 2019


commit 631b0f74787029f64f4f11c4559941769e0e07ba
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Aug 8 11:08:34 2019 +0000

    Destroy the childs Param and Panicstr VSMs properly

diff --git a/bin/varnishd/mgt/mgt_shmem.c b/bin/varnishd/mgt/mgt_shmem.c
index ddfa6504a..5fdcfc95c 100644
--- a/bin/varnishd/mgt/mgt_shmem.c
+++ b/bin/varnishd/mgt/mgt_shmem.c
@@ -143,6 +143,6 @@ mgt_SHM_ChildDestroy(void)
 		AZ(system("rm -rf " VSM_CHILD_DIRNAME));
 		VJ_master(JAIL_MASTER_LOW);
 	}
-	heritage.panic_str = NULL;
-	heritage.param = NULL;
+	VSMW_Free(mgt_vsmw, (void**)&heritage.panic_str);
+	VSMW_Free(mgt_vsmw, (void**)&heritage.param);
 }


More information about the varnish-commit mailing list