Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/zdtm/static/autofs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/zdtm/static/autofs.c b/test/zdtm/static/autofs.c
index c2e047714..f74bc35ac 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. */