Mesa (staging/18.3): st/xa: Fix a memory leak

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 3 18:33:05 UTC 2018


Module: Mesa
Branch: staging/18.3
Commit: c2a22a44a19850c771a899e83d5ab55b98031a82
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c2a22a44a19850c771a899e83d5ab55b98031a82

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>
(cherry picked from commit 7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d)

---

 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 ba220877c8..67d9eac53b 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