diff options
Diffstat (limited to 'lib/torture/torture.c')
-rw-r--r-- | lib/torture/torture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/torture/torture.c b/lib/torture/torture.c index 17adce94e57..99447e7e535 100644 --- a/lib/torture/torture.c +++ b/lib/torture/torture.c @@ -107,6 +107,7 @@ void torture_comment(struct torture_context *context, const char *comment, ...) va_start(ap, comment); tmp = talloc_vasprintf(context, comment, ap); + va_end(ap); context->results->ui_ops->comment(context, tmp); @@ -126,6 +127,7 @@ void torture_warning(struct torture_context *context, const char *comment, ...) va_start(ap, comment); tmp = talloc_vasprintf(context, comment, ap); + va_end(ap); context->results->ui_ops->warning(context, tmp); |