[CRIU] [PATCH 6/7] test: add missing va_end

Rikard Falkeborn rikard.falkeborn at gmail.com
Sun Apr 28 21:22:54 MSK 2019


Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
---
 test/zdtm/static/autofs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/zdtm/static/autofs.c b/test/zdtm/static/autofs.c
index c2e04771..f74bc35a 100644
--- a/test/zdtm/static/autofs.c
+++ b/test/zdtm/static/autofs.c
@@ -49,6 +49,7 @@ static char *xvstrcat(char *str, const char *fmt, va_list args)
 		if (new) {
 			va_copy(tmp, args);
 			ret = vsnprintf(new + offset, delta, fmt, tmp);
+			va_end(tmp);
 			if (ret >= delta) {
 				/* NOTE: vsnprintf returns the amount of bytes
 				 *                                  * to allocate. */
-- 
2.21.0



More information about the CRIU mailing list