diff options
author | Oliver McFadden <oliver.mcfadden@nokia.com> | 2010-03-15 23:46:34 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-03-21 15:20:27 -0700 |
commit | aeae6637b52b042cf8b07c6943abcd5d31968d49 (patch) | |
tree | 5930fe94fc7b11978d70647ae2130a190158d23e /fb | |
parent | d9ee31ab05efbd2d598cc93a41a8834f84d30803 (diff) |
fb: fbFinishScreenInit: leaked_storage: Variable "(visuals|depths)" goes out of scope
Signed-off-by: Oliver McFadden <oliver.mcfadden@nokia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbscreen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fb/fbscreen.c b/fb/fbscreen.c index 24eadde1a..53e2ada9f 100644 --- a/fb/fbscreen.c +++ b/fb/fbscreen.c @@ -228,7 +228,11 @@ fbFinishScreenInit(ScreenPtr pScreen, rootdepth = 0; if (!fbInitVisuals (&visuals, &depths, &nvisuals, &ndepths, &rootdepth, &defaultVisual,((unsigned long)1<<(imagebpp-1)), 8)) + { + xfree (visuals); + xfree (depths); return FALSE; + } if (! miScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width, rootdepth, ndepths, depths, defaultVisual, nvisuals, visuals)) |