Giovanni Mascellani : vkd3d-shader/hlsl: Fix a memory leak.
Module: vkd3d Branch: master Commit: 1502740d5b36afa729f0fe950e6a67e4e6f9b860 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=1502740d5b36afa729f0fe95... Author: Giovanni Mascellani <gmascellani(a)codeweavers.com> Date: Mon Sep 27 14:41:31 2021 +0200 vkd3d-shader/hlsl: Fix a memory leak. Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com> Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- libs/vkd3d-shader/hlsl_codegen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index 6f8bece..9c9a383 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -1014,6 +1014,7 @@ static void allocate_temp_registers(struct hlsl_ctx *ctx, struct hlsl_ir_functio struct liveness liveness = {0}; allocate_temp_registers_recurse(ctx, entry_func->body, &liveness); ctx->temp_count = liveness.reg_count; + vkd3d_free(liveness.regs); } static void allocate_semantic_register(struct hlsl_ctx *ctx, struct hlsl_ir_var *var, unsigned int *counter, bool output)
participants (1)
-
Alexandre Julliard