From 43589730b408132f4fcdffebb37fe5b681400b81 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Thu, 18 Apr 2024 15:50:24 +0100 Subject: [PATCH] compiler: fix memory leak The `test_compiler compiler_defines_for_extensions` test did not free all `malloc`'ed memory. Signed-off-by: Sven van Haastregt --- .../compiler/test_compiler_defines_for_extensions.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test_conformance/compiler/test_compiler_defines_for_extensions.cpp b/test_conformance/compiler/test_compiler_defines_for_extensions.cpp index 89626b7977..623c2dbfb7 100644 --- a/test_conformance/compiler/test_compiler_defines_for_extensions.cpp +++ b/test_conformance/compiler/test_compiler_defines_for_extensions.cpp @@ -472,8 +472,13 @@ int test_compiler_defines_for_extensions(cl_device_id device, cl_context context // cleanup free(data); free(kernel_code); - for(i=0; i