[Piglit] [PATCH piglit 2/4] util: fix memory leak
Eric Engestrom
eric.engestrom at intel.com
Wed Aug 22 11:38:40 UTC 2018
CovID: 1438469 (RESOURCE_LEAK)
Fixes: 606e40b2659ad7fc4ae8e "util: Add utilities to handle shader_test files"
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
tests/util/piglit-shader-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/util/piglit-shader-test.c b/tests/util/piglit-shader-test.c
index 6aeb5a521a25b2d62301..4802983e56d1037be079 100644
--- a/tests/util/piglit-shader-test.c
+++ b/tests/util/piglit-shader-test.c
@@ -137,6 +137,7 @@ piglit_load_source_from_shader_test(const char *filename,
if (first_line == NULL) {
fprintf(stderr, "Could not find groupname \"%s\" on file \"%s\"\n",
group_name, filename);
+ free(text);
return false;
}
--
Cheers,
Eric
More information about the Piglit
mailing list