From: Thomas Hellstrom Date: Mon, 26 Nov 2018 18:02:08 +0000 (+0100) Subject: st/xa: Fix a memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d;p=mesa.git 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 --- 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