[Piglit] [PATCH piglit 1/4] arb_gpu_shader5: fix memory leak
Eric Engestrom
eric.engestrom at intel.com
Wed Aug 22 11:38:39 UTC 2018
CovID: 1438471 (RESOURCE_LEAK)
Fixes: 7ec9b1734b66ee41c2700 "arb_gpu_shader5: Add support for testing
spirv with XFB streams"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
.../execution/xfb-streams-without-invocations.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 b604fd9732ebb26e5eb8..1c6f76c0cb631e4c7437 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(
--
Cheers,
Eric
More information about the Piglit
mailing list