On 08/05/2015 09:29 PM, Vinson Lee wrote:
Fix resource leak defect reported by Coverity.

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




Reviewed-by: Brian Paul <[email protected]>

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

Reply via email to