From e3a0e468bc67e4169406bb4c96b5ab483dc48a28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 4 Aug 2010 08:57:02 -0400 Subject: [PATCH] glx: Fix use after free in drisw error path --- src/glx/drisw_glx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"); -- 2.30.2