Module: vkd3d Branch: master Commit: 521082afbeecf95feb8ff0f9681aa09c9f5be92e URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/521082afbeecf95feb8ff0f9681aa0...
Author: Giovanni Mascellani gmascellani@codeweavers.com Date: Thu Feb 1 12:18:33 2024 +0100
vkd3d-shader/hlsl: Free variable identifiers in primary_expr (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 8dc353e1..5926f495 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -6992,8 +6992,10 @@ primary_expr: if (!(var = hlsl_get_var(ctx->cur_scope, $1))) { hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_NOT_DEFINED, "Variable "%s" is not defined.", $1); + vkd3d_free($1); YYABORT; } + vkd3d_free($1); if (!(load = hlsl_new_var_load(ctx, var, &@1))) YYABORT; if (!($$ = make_block(ctx, &load->node)))