From: Zebediah Figura zfigura@codeweavers.com
--- libs/vkd3d-shader/hlsl.y | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index e011ea24..612432f0 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -5234,7 +5234,11 @@ primary_expr: | var_identifier '(' func_arguments ')' { if (!($$ = add_call(ctx, $1, &$3, &@1))) + { + vkd3d_free($1); YYABORT; + } + vkd3d_free($1); } | NEW_IDENTIFIER {
I'm not terribly familiar with the HLSL parser, but it looks like there may be a couple of instances of similar issues as well.
This merge request was approved by Henri Verbeet.
I'm not terribly familiar with the HLSL parser, but it looks like there may be a couple of instances of similar issues as well.
There are quite a lot of leaks, yeah; I'm just trying to fix them as I notice them...