From: Kristian Høgsberg Date: Wed, 4 Aug 2010 12:57:02 +0000 (-0400) Subject: glx: Fix use after free in drisw error path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e3a0e468bc67e4169406bb4c96b5ab483dc48a28;p=mesa.git glx: Fix use after free in drisw error path --- diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 66a60430e81..c5b179157b3 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -502,10 +502,9 @@ driCreateScreen(int screen, struct glx_display *priv) return &psc->base; handle_error: - Xfree(psc); - if (psc->driver) dlclose(psc->driver); + Xfree(psc); ErrorMessageF("reverting to indirect rendering\n");