From: Brian Date: Tue, 7 Aug 2007 21:06:08 +0000 (+0100) Subject: move free() after dereference (bug 11878) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3973d1ad3353cd66c69e5170908a9e9ae03477fb;p=mesa.git move free() after dereference (bug 11878) --- diff --git a/src/mesa/drivers/dri/i810/i810screen.c b/src/mesa/drivers/dri/i810/i810screen.c index f64c10a9ae0..f8cf050d7e4 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;