s4: Call va_end() after all va_start()/va_copy() calls.
[ira/wip.git] / lib / torture / torture.c
index 17adce94e57395b923ada59b7fcd25a89d31d26d..99447e7e5355bd93b62e8fc0e65bdcea6dcddf37 100644 (file)
@@ -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);