summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2017-05-18 15:15:09 -0700
committerVinson Lee <vlee@freedesktop.org>2017-05-19 14:04:26 -0700
commit0c64e94e7835a23657a30cf0e18cc586beaf773c (patch)
tree48b335caffe19783cc33b560a91fc31afd39184a /tests
parente8cb1406c468305160066b3be71d4e71d5f2db06 (diff)
arb_direct_state_access: Fix memory leaks.
Fix Coverity resource leak defect. CID: 1409706 Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/spec/arb_direct_state_access/get-textures.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/spec/arb_direct_state_access/get-textures.c b/tests/spec/arb_direct_state_access/get-textures.c
index 8b3372073..5286b4605 100644
--- a/tests/spec/arb_direct_state_access/get-textures.c
+++ b/tests/spec/arb_direct_state_access/get-textures.c
@@ -116,6 +116,9 @@ valid_call:
50 * 50 * 6 * 4, data);
pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
+ free(data);
+ free(image);
+
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}