We need to free a regex after compiling/executing it.
---
 tests/cl/program/program-tester.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/cl/program/program-tester.c 
b/tests/cl/program/program-tester.c
index be6bc20..31aeec9 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -1132,6 +1132,8 @@ parse_name(const char *input)
                                                        input, bad_char);
                return NULL;
        }
+
+       regfree(&regex);
        return name;
 }
 
-- 
1.8.3.2

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

Reply via email to