From: Roland Scheidegger Date: Wed, 30 Apr 2014 23:04:31 +0000 (+0200) Subject: glx/drisw: fix memory leak when destroying screen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a773fdc64da8ba88d8c7f8e383c45248b0c3aa19;p=mesa.git glx/drisw: fix memory leak when destroying screen. Reviewed-by: Brian Paul --- 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"