summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>2019-06-03 18:07:10 +0300
committerDanylo Piliaiev <danylo.piliaiev@gmail.com>2019-12-25 12:49:58 +0000
commitaf90cfdf57f50bf70ebb13bbbb872ba63082f449 (patch)
treee3ba165598201f4624582feb7c7cedcacbd7648e /tests/util
parent277d8c014b4f29e2d52ad5d53dea915270010719 (diff)
util/minmax-test: Free memory, allocated for token name
Memory is being allocated by asprintf, but never freed. Fixes memory leak in arb_compute_shader-minmax test. Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/minmax-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util/minmax-test.c b/tests/util/minmax-test.c
index 55f6201dc..ae9a0f98a 100644
--- a/tests/util/minmax-test.c
+++ b/tests/util/minmax-test.c
@@ -129,6 +129,8 @@ piglit_test_int_v(GLenum token, GLuint index, GLint limit, bool max)
piglit_report_int(name, limit, val,
(max && val <= limit) ||
(!max && val >= limit));
+
+ free(name);
}
static void