diff options
author | Vinson Lee <vlee@vmware.com> | 2009-11-06 16:23:44 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-11-06 16:23:44 -0800 |
commit | b9ff3044bc68cb322ce61bc0f9245b4f13d8bcf6 (patch) | |
tree | 71fc04eb0aba03145744b542f3565ec6ba3171df | |
parent | 25e1fa0495436422ccf2b012647a58d77293debd (diff) |
fp-long-alu: Fix memory leak when test is skipped.
-rw-r--r-- | tests/shaders/fp-long-alu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/shaders/fp-long-alu.c b/tests/shaders/fp-long-alu.c index 32b370bb9..0aa68cdab 100644 --- a/tests/shaders/fp-long-alu.c +++ b/tests/shaders/fp-long-alu.c @@ -82,8 +82,10 @@ static enum piglit_result test(unsigned int alu_depth) * long programs, and if 16k works, then 64k will probably * work, too ;-) */ - if (!alu_depth || alu_depth > 16384 || alu_depth + 1 > max_alu_instructions) + if (!alu_depth || alu_depth > 16384 || alu_depth + 1 > max_alu_instructions) { + free(program_text); return PIGLIT_SKIP; + } printf("Testing: alu_depth = %u\n", alu_depth); |