Fix resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to