[Mesa-dev] [PATCH] glx/drisw: fix memory leak when destroying screen.

sroland at vmware.com sroland at vmware.com
Wed Apr 30 16:04:58 PDT 2014


From: Roland Scheidegger <sroland at vmware.com>

---
 src/glx/drisw_glx.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 751626b..5885b66 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -619,6 +619,7 @@ driswDestroyScreen(struct glx_screen *base)
    psc->driScreen = NULL;
    if (psc->driver)
       dlclose(psc->driver);
+   free(psc);
 }
 
 #define SWRAST_DRIVER_NAME "swrast"
-- 
1.7.9.5


More information about the mesa-dev mailing list