[Piglit] [PATCH] point-vertex-id: Fix memory leak.

Vinson Lee vlee at freedesktop.org
Wed Aug 5 20:29:03 PDT 2015


Fix resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/general/point-vertex-id.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/general/point-vertex-id.c b/tests/general/point-vertex-id.c
index 5823ff1..350c1b3 100644
--- a/tests/general/point-vertex-id.c
+++ b/tests/general/point-vertex-id.c
@@ -245,6 +245,8 @@ piglit_display(void)
 
 	piglit_present_results();
 
+	free(ref_image);
+
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
 }
 
-- 
2.1.4



More information about the Piglit mailing list