summaryrefslogtreecommitdiff
path: root/tests/spec/arb_uniform_buffer_object
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-12-01 22:26:02 -0800
committerVinson Lee <vlee@freedesktop.org>2012-12-03 22:29:49 -0800
commitb9d0d4df9687f783fddd55ef6dddac1333212266 (patch)
tree072d6264d0a77ef80223962ffa8d2cf40ae9af71 /tests/spec/arb_uniform_buffer_object
parent1c8e3bb75136319feb5a6eb3c9108fd3a99052c4 (diff)
arb_uniform_buffer_object: Fix memory leak.
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/spec/arb_uniform_buffer_object')
-rw-r--r--tests/spec/arb_uniform_buffer_object/maxblocks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/spec/arb_uniform_buffer_object/maxblocks.c b/tests/spec/arb_uniform_buffer_object/maxblocks.c
index b48db027f..3fab86caa 100644
--- a/tests/spec/arb_uniform_buffer_object/maxblocks.c
+++ b/tests/spec/arb_uniform_buffer_object/maxblocks.c
@@ -251,6 +251,7 @@ pass_link_test(int y_index,
if (!prog) {
printf("shader with (%d, %d) blocks failed to link\n",
vs_blocks, fs_blocks);
+ free(bos);
return false;
}