From 787ac4207e30a18b4286faa2140d06b6fb8daf36 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 9 Sep 2013 20:25:55 -0700 Subject: [PATCH] glsl: Add missing va_end in builtin_builder::add_function. Fixes "Missing varargs init or cleanup" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- src/glsl/builtin_functions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 1fedca4cebb..ce78df12e8d 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -1853,6 +1853,7 @@ builtin_builder::add_function(const char *name, ...) f->add_signature(sig); } + va_end(ap); shader->symbols->add_function(f); } -- 2.30.2