mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
compiler: fix memory leak (#1950)
The `test_compiler compiler_defines_for_extensions` test did not free all `malloc`'ed memory. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
4c085dec4a
commit
46255db86f
@@ -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<num_of_supported_extensions; i++) {
|
||||
free(extensions_supported[i]);
|
||||
for (i = 0; i < num_of_supported_extensions; i++)
|
||||
{
|
||||
free(extensions_supported[i]);
|
||||
}
|
||||
for (i = 0; i < num_not_supported_extensions; i++)
|
||||
{
|
||||
free(extensions_not_supported[i]);
|
||||
}
|
||||
free(extensions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user