[Piglit] [PATCH] arb_direct_state_access: Fix memory leaks.
Vinson Lee
vlee at freedesktop.org
Thu May 18 22:17:03 UTC 2017
Fix Coverity resource leak defect.
CID: 1409706
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_direct_state_access/get-textures.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/spec/arb_direct_state_access/get-textures.c b/tests/spec/arb_direct_state_access/get-textures.c
index 8b3372073867..5286b4605c82 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;
}
--
2.9.3
More information about the Piglit
mailing list