On 12/13/2014 09:47 PM, Vinson Lee wrote:
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 */
Reviewed-by: Brian Paul <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit