vkd3d-shader/hlsl: Fix some memory leaks in the function call rule.

This commit is contained in:
Zebediah Figura 2022-11-10 19:28:13 -06:00 committed by Alexandre Julliard
parent d405295bc7
commit da2435707b
Notes: Alexandre Julliard 2023-03-09 22:26:36 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/116

View File

@ -5300,7 +5300,11 @@ primary_expr:
| var_identifier '(' func_arguments ')'
{
if (!($$ = add_call(ctx, $1, &$3, &@1)))
{
vkd3d_free($1);
YYABORT;
}
vkd3d_free($1);
}
| NEW_IDENTIFIER
{