From 8379e5337cbbef6d468baafa2f42c8a6ce0bf074 Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Wed, 24 Jan 2024 19:01:36 -0300 Subject: [PATCH] tests/shader_runner: Free extensions pointer on vulkan runner (valgrind). --- tests/shader_runner_vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/shader_runner_vulkan.c b/tests/shader_runner_vulkan.c index e1271e75..0aa61107 100644 --- a/tests/shader_runner_vulkan.c +++ b/tests/shader_runner_vulkan.c @@ -1252,10 +1252,12 @@ static bool check_device_extensions(struct vulkan_shader_runner *runner) if (!has_extension(extensions, count, required_device_extensions[i])) { skip("The selected Vulkan device does not support %s.\n", required_device_extensions[i]); + free(extensions); return false; } } + free(extensions); return true; }