From 7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Mon, 26 Nov 2018 19:02:08 +0100 Subject: [PATCH] st/xa: Fix a memory leak Free the context after destruction. Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Thomas Hellstrom Reviewed-by: Sinclair Yeh Reviewed-by: Emil Velikov --- src/gallium/state_trackers/xa/xa_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/xa/xa_context.c b/src/gallium/state_trackers/xa/xa_context.c index 94f7185272a..a4630cf09ca 100644 --- a/src/gallium/state_trackers/xa/xa_context.c +++ b/src/gallium/state_trackers/xa/xa_context.c @@ -91,6 +91,7 @@ xa_context_destroy(struct xa_context *r) } r->pipe->destroy(r->pipe); + free(r); } XA_EXPORT int -- 2.30.2