summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-07 22:06:08 +0100
committerBrian <brian.paul@tungstengraphics.com>2007-08-07 22:06:08 +0100
commit3973d1ad3353cd66c69e5170908a9e9ae03477fb (patch)
treeddc5caaa4c404e17db196bbe09d854e98160c345
parente45b40381c51564e12a0a1216bd651679a553288 (diff)
move free() after dereference (bug 11878)
-rw-r--r--src/mesa/drivers/dri/i810/i810screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i810/i810screen.c b/src/mesa/drivers/dri/i810/i810screen.c
index f64c10a9ae..f8cf050d7e 100644
--- a/src/mesa/drivers/dri/i810/i810screen.c
+++ b/src/mesa/drivers/dri/i810/i810screen.c
@@ -288,8 +288,8 @@ i810InitDriver(__DRIscreenPrivate *sPriv)
i810Screen->depth.handle,
i810Screen->depth.size,
(drmAddress *)&i810Screen->depth.map) != 0) {
- FREE(i810Screen);
drmUnmap(i810Screen->back.map, i810Screen->back.size);
+ FREE(i810Screen);
sPriv->private = NULL;
__driUtilMessage("i810InitDriver: drmMap (2) failed");
return GL_FALSE;