[master] 43d859223 mgt: Missing va_end()

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Jan 31 16:48:05 UTC 2022


commit 43d8592238654a501e4912d41c8231f487ef16c0
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Jan 31 17:47:20 2022 +0100

    mgt: Missing va_end()
    
    Spotted by Coverity Scan.

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index ecc09dc3f..12ca1946e 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -457,6 +457,7 @@ create_pid_file(pid_t *ppid, const char *fmt, ...)
 		    VSB_data(vsb), VAS_errtxt(errno));
 	VJ_master(JAIL_MASTER_LOW);
 	VSB_destroy(&vsb);
+	va_end(ap);
 	return (pfh);
 }
 


More information about the varnish-commit mailing list