[Piglit] [PATCH v2] piglit/vbo: memory leak

Sergii Romantsov sergii.romantsov at gmail.com
Wed Oct 24 11:20:16 UTC 2018


Trivial fix of memory leaking for test 'initialized-vbo'.

v2: Rb added.

Fixes: 6a467e00cfae (security/initialized-vbo: test contents of uninitialized VBOs)
CC: Brian Paul <brianp at vmware.com>
Signed-off-by: Sergii Romantsov <sergii.romantsov at globallogic.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/security/initialized-vbo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/security/initialized-vbo.c b/tests/security/initialized-vbo.c
index 20c8155..16656bc 100644
--- a/tests/security/initialized-vbo.c
+++ b/tests/security/initialized-vbo.c
@@ -70,6 +70,7 @@ piglit_display(void)
 
 	glDeleteBuffers(1, &buf);
 
+	free(tmp);
 	return pass ? PIGLIT_PASS : PIGLIT_WARN;
 }
 
-- 
2.7.4



More information about the Piglit mailing list