[master] 9bf8ee9ce Destroy the childs Param and Panicstr VSMs properly

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 13 11:10:10 UTC 2019


commit 9bf8ee9ce4d70d12f4fd8439dcb16d41037fc266
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 90e966f0e..574513413 100644
--- a/bin/varnishd/mgt/mgt_shmem.c
+++ b/bin/varnishd/mgt/mgt_shmem.c
@@ -142,6 +142,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