summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c b/tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c
index b604fd973..1c6f76c0c 100644
--- a/tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c
+++ b/tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c
@@ -117,8 +117,10 @@ build_glsl_program()
if (!piglit_load_source_from_shader_test(shader_source_filename,
GL_VERTEX_SHADER, false,
- &vs_pass_thru_text, NULL))
+ &vs_pass_thru_text, NULL)) {
+ free(gs_text);
return 0;
+ }
prog = piglit_build_simple_program_multiple_shaders(