From 71515ba190e90e0250b9de23b7ba871c1dd44f09 Mon Sep 17 00:00:00 2001 From: Andrew Kroeger Date: Fri, 12 Jun 2009 13:01:41 +0200 Subject: s4: Call va_end() after all va_start()/va_copy() calls. This corrects the issues reaised in bug #6129, and some others that were not originally identified. It also accounts for some code that was in the original bug report but appears to have since been made common between S3 and S4. Thanks to Erik Hovland for the original bug report. --- lib/torture/torture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/torture/torture.c') diff --git a/lib/torture/torture.c b/lib/torture/torture.c index 17adce94e5..99447e7e53 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); -- cgit