projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab896c
)
fix coverity 1107: use after free
author
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Mar 2006 04:15:29 +0000
(
04:15
+0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Thu, 23 Mar 2006 04:15:29 +0000
(
04:15
+0000)
src/mesa/drivers/dri/i810/i810screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i810/i810screen.c
b/src/mesa/drivers/dri/i810/i810screen.c
index 005d11a9b1eea9e25a9a463695e5943dab46ef7a..d0e58f667c2e1ee65fe19861096f01eb0b675c6c 100644
(file)
--- 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;