summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>2019-06-07 14:09:22 +0300
committerYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>2019-06-10 11:50:14 +0300
commit8eec9d95632ecef93865a2c5da7f885daf51166d (patch)
tree022a62ddc738cc6d4b6899149aa2d1db3c79f4d7
parentd4763c7e35f88723219c658415bc658d6f113c3c (diff)
tests/texelFetch: Memory leak
Free memory, allocated by asprintf. Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--tests/texturing/shaders/texelFetch.c1
1 files changed, 1 insertions, 0 deletions
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);