From a73abd8e2487bd5c32b11ae9a2edc4c8d05989d3 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Tue, 7 Aug 2007 11:15:03 +0300 Subject: [PATCH] Moved free() down, to prevent use after free... --- src/mesa/drivers/dri/i810/i810screen.c | 2 +- 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 f64c10a..f8cf050 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; -- 1.5.2.3