From 8eec9d95632ecef93865a2c5da7f885daf51166d Mon Sep 17 00:00:00 2001 From: Yevhenii Kolesnikov Date: Fri, 7 Jun 2019 14:09:22 +0300 Subject: tests/texelFetch: Memory leak Free memory, allocated by asprintf. Signed-off-by: Yevhenii Kolesnikov Reviewed-by: Lionel Landwerlin --- tests/texturing/shaders/texelFetch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/texturing/shaders/texelFetch.c b/tests/texturing/shaders/texelFetch.c index cdaee9112..5492a6c51 100644 --- a/tests/texturing/shaders/texelFetch.c +++ b/tests/texturing/shaders/texelFetch.c @@ -373,6 +373,7 @@ upload_multisample_data(GLuint tex, int width, int height, sampler.return_type, sampler.data_type == GL_UNSIGNED_INT ? "" : "-"); fs = piglit_compile_shader_text(GL_FRAGMENT_SHADER, fs_code); + free(fs_code); if (!fs) { printf("Failed to compile staging program.\n"); piglit_report_result(PIGLIT_FAIL); -- cgit v1.2.3