[Piglit] [PATCH] glsl-1.50-get-active-attrib-array: Fix memory leak.

Vinson Lee vlee at freedesktop.org
Fri Aug 9 22:53:48 PDT 2013


Fixes "Resource leak" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/glsl-1.50/execution/get-active-attrib-array.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/glsl-1.50/execution/get-active-attrib-array.c b/tests/spec/glsl-1.50/execution/get-active-attrib-array.c
index 16f0b01..8262ef9 100644
--- a/tests/spec/glsl-1.50/execution/get-active-attrib-array.c
+++ b/tests/spec/glsl-1.50/execution/get-active-attrib-array.c
@@ -103,6 +103,7 @@ getAttribLocTest(GLint program, int active_attribs, int max_name_length,
 			name, size, expected_size);
 	}
 
+	free(name);
 	return pass;
 }
 
-- 
1.8.3.2



More information about the Piglit mailing list