vkd3d-shader/hlsl: Free the "iter" block pointer on success in create_loop().

Spotted by Giovanni Mascellani.
This commit is contained in:
Zebediah Figura 2023-06-29 18:49:54 -05:00 committed by Alexandre Julliard
parent b0ac77b44d
commit 6e303af519
Notes: Alexandre Julliard 2023-07-05 22:36:51 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/258

View File

@ -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: