From 7bd53cf6d9beedad54395003fe51948d68356dab Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Tue, 21 May 2024 17:51:44 -0400 Subject: [PATCH] vkd3d-shader/hlsl: Free array sizes on function parameters (Valgrind). --- libs/vkd3d-shader/hlsl.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index a0269239..ba617346 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -6856,6 +6856,8 @@ parameter: } type = hlsl_new_array_type(ctx, type, $4.sizes[i]); } + vkd3d_free($4.sizes); + $$.type = type; if (hlsl_version_ge(ctx, 5, 1) && type->class == HLSL_CLASS_ARRAY && hlsl_type_is_resource(type))