diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2018-08-22 11:50:00 +0100 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2018-08-23 14:56:48 +0100 |
commit | 9dc1d85a5be7f7ce6ef7e82728b8e6a428036cf8 (patch) | |
tree | 4c2216d26044e81233a350be382fb7b5229a19ba | |
parent | 166c6e3a955c7ed6ac9c514abb6da30b04f81c8e (diff) |
arb_gpu_shader5: fix memory leak
CovID: 1438471 (RESOURCE_LEAK)
Fixes: 7ec9b1734b66ee41c2700 "arb_gpu_shader5: Add support for testing
spirv with XFB streams"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
-rw-r--r-- | tests/spec/arb_gpu_shader5/execution/xfb-streams-without-invocations.c | 4 |
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( |