[Piglit] [PATCH] shader_runner: Fix memory leak.
Vinson Lee
vlee at freedesktop.org
Thu Dec 13 23:11:59 PST 2012
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/shaders/shader_runner.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7612dd7..db92b8f 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -911,6 +911,8 @@ parse_required_versions(struct requirement_parse_results *results,
line++;
}
+ free(text);
+
if (results->found_glsl && results->glsl_version.es && !results->found_gl) {
printf("%s", "The test specifies a requirement for GLSL ES, "
"but specifies no GL requirement\n.");
--
1.8.0.1
More information about the Piglit
mailing list