Module: vkd3d Branch: master Commit: 7bd53cf6d9beedad54395003fe51948d68356dab URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/7bd53cf6d9beedad54395003fe5194...
Author: Francisco Casas fcasas@codeweavers.com Date: Tue May 21 17:51:44 2024 -0400
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))