From a773fdc64da8ba88d8c7f8e383c45248b0c3aa19 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 1 May 2014 01:04:31 +0200 Subject: [PATCH] glx/drisw: fix memory leak when destroying screen. Reviewed-by: Brian Paul --- 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 751626bf3bb..5885b6635c4 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" -- 2.30.2