Module: vkd3d Branch: master Commit: 6e303af5192e61c8ca100dd81828a812487e759b URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/6e303af5192e61c8ca100dd81828a8...
Author: Zebediah Figura zfigura@codeweavers.com Date: Thu Jun 29 18:49:54 2023 -0500
vkd3d-shader/hlsl: Free the "iter" block pointer on success in create_loop().
Spotted by Giovanni Mascellani.
---
libs/vkd3d-shader/hlsl.y | 1 + 1 file changed, 1 insertion(+)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index a888ec76..42fa2129 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -548,6 +548,7 @@ static struct hlsl_block *create_loop(struct hlsl_ctx *ctx, enum loop_type type,
destroy_block(cond); destroy_block(body); + destroy_block(iter); return init;
oom: