summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-08-04 08:57:02 -0400
committerKristian Høgsberg <[email protected]>2010-08-04 08:57:02 -0400
commite3a0e468bc67e4169406bb4c96b5ab483dc48a28 (patch)
tree589ac3c216818a04a61d19183dd867602dad5891 /src/glx
parente71c44cedd6d22930bf873504d89faf68d93e1cc (diff)
glx: Fix use after free in drisw error path
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/drisw_glx.c3
1 files changed, 1 insertions, 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");