summaryrefslogtreecommitdiff
path: root/tests/shaders/shader_runner.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-12-13 23:08:01 -0800
committerVinson Lee <vlee@freedesktop.org>2012-12-14 23:26:43 -0800
commit06187870be89da2a5aab97757824bc9c3016a842 (patch)
treecd31a552835905a015eda7e075f30da9ec215712 /tests/shaders/shader_runner.c
parent8eb7631b16106d18d802cce368f01ce1f24f95b5 (diff)
shader_runner: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Tom Gall <tom.gall@linaro.org>
Diffstat (limited to 'tests/shaders/shader_runner.c')
-rw-r--r--tests/shaders/shader_runner.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 7612dd7d5..db92b8f8f 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.");