diff options
-rw-r--r-- | test/zdtm/static/autofs.c | 1 |
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. */ |