vkd3d-shader/hlsl: Avoid leaking the block in the subscript rule.

This commit is contained in:
Elizabeth Figura 2024-08-29 12:48:23 -05:00 committed by Henri Verbeet
parent bb74180659
commit 390a330b8e
Notes: Henri Verbeet 2024-10-28 18:10:10 +01:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1214

View File

@ -8958,6 +8958,7 @@ postfix_expr:
{ {
if (!add_record_access_recurse(ctx, $1, $3, &@2)) if (!add_record_access_recurse(ctx, $1, $3, &@2))
{ {
destroy_block($1);
vkd3d_free($3); vkd3d_free($3);
YYABORT; YYABORT;
} }