Mesa (master): st/xa: Fix a memory leak

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 29 09:51:49 UTC 2018


Module: Mesa
Branch: master
Commit: 7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Mon Nov 26 19:02:08 2018 +0100

st/xa: Fix a memory leak

Free the context after destruction.

Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Sinclair Yeh <syeh at vmware.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

---

 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 94f7185272..a4630cf09c 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




More information about the mesa-commit mailing list