From a06b51559b5381845c384c362f4600bbbe3252ad Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 13 Jan 2024 16:59:00 -0400 Subject: [PATCH] asahi: plug geometry heap leak Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 89c3fe1b8c0..3c50baf47ee 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -1388,6 +1388,8 @@ agx_destroy_context(struct pipe_context *pctx) drmSyncobjDestroy(dev->fd, ctx->batches.slots[i].syncobj); } + pipe_resource_reference(&ctx->heap, NULL); + ralloc_free(ctx); }