From 0c64e94e7835a23657a30cf0e18cc586beaf773c Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 18 May 2017 15:15:09 -0700 Subject: arb_direct_state_access: Fix memory leaks. Fix Coverity resource leak defect. CID: 1409706 Signed-off-by: Vinson Lee Reviewed-by: Samuel Pitoiset --- tests/spec/arb_direct_state_access/get-textures.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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; } -- cgit v1.2.3