diff options
author | Dave Airlie <airliedfreedesktop.org> | 2006-03-23 04:15:29 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2006-03-23 04:15:29 +0000 |
commit | 0a6040dc2d82e6a8655b466f66eb0524ddfe00f0 (patch) | |
tree | 86128dabb96d9219ff086d6e3197e5f715c644f9 /src/mesa/drivers/dri/i810 | |
parent | eab896cc213157758d74a2f39b5e3b1e748c071f (diff) | |
download | external_mesa3d-0a6040dc2d82e6a8655b466f66eb0524ddfe00f0.zip external_mesa3d-0a6040dc2d82e6a8655b466f66eb0524ddfe00f0.tar.gz external_mesa3d-0a6040dc2d82e6a8655b466f66eb0524ddfe00f0.tar.bz2 |
fix coverity 1107: use after free
Diffstat (limited to 'src/mesa/drivers/dri/i810')
-rw-r--r-- | 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 005d11a..d0e58f6 100644 --- a/src/mesa/drivers/dri/i810/i810screen.c +++ b/src/mesa/drivers/dri/i810/i810screen.c @@ -302,9 +302,9 @@ i810InitDriver(__DRIscreenPrivate *sPriv) i810Screen->tex.handle, i810Screen->tex.size, (drmAddress *)&i810Screen->tex.map) != 0) { - FREE(i810Screen); drmUnmap(i810Screen->back.map, i810Screen->back.size); drmUnmap(i810Screen->depth.map, i810Screen->depth.size); + FREE(i810Screen); sPriv->private = NULL; __driUtilMessage("i810InitDriver: drmMap (3) failed"); return GL_FALSE; |