[Piglit] [PATCH] gl-1.0-logicop: Fix memory leak.

Vinson Lee vlee at freedesktop.org
Sat Dec 13 20:47:40 PST 2014


Fix resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/gl-1.0/logicop.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/gl-1.0/logicop.c b/tests/spec/gl-1.0/logicop.c
index 6ca988d..aa484ef 100644
--- a/tests/spec/gl-1.0/logicop.c
+++ b/tests/spec/gl-1.0/logicop.c
@@ -270,6 +270,8 @@ test_logicop(GLenum logicop)
 	if (!piglit_automatic)
 		piglit_present_results();
 
+	free(exp_data);
+
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
 
 } /* test_logicop */
-- 
1.9.2



More information about the Piglit mailing list