xserver/hw/xfree86/modes
Erkki Seppälä db9321b330 xfree86/modes: Fixed memory leak in xf86InitialConfiguration
There were two memory leaks in the function: one was the lack of free
for "enabled", the other was the full lack of releasing anything when
configuration was too small. The first issue was fixed by adding the
missing free, the other was addressed by replacing the duplicate
memory releasing sequences with one that is gotoed into.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit d3adf2d935)
2011-03-14 15:34:04 -07:00
..
Makefile.am displayid: Implement mode decoding. 2009-07-17 14:48:55 -04:00
xf86Crtc.c xfree86/modes: Fixed memory leak in xf86InitialConfiguration 2011-03-14 15:34:04 -07:00
xf86Crtc.h Allow for missing or disabled compat_output 2010-02-25 12:48:27 -08:00
xf86Cursors.c xfree86: Fix rotation of 2-color non-interleaved cursor images 2010-12-02 14:55:29 -08:00
xf86cvt.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86DiDGA.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
xf86DisplayIDModes.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
xf86EdidModes.c edid: Fix incorrect timings for VIC61 2011-01-06 15:16:58 -05:00
xf86gtf.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
xf86Modes.c xfree86/modes: Take rotation into account when checking mode size 2011-01-06 15:15:24 -05:00
xf86Modes.h modes: Fix duplicate detection, and do it more consistently 2009-10-29 14:06:00 -04:00
xf86RandR12.c xfree86: store the screen's gamma information on init. 2010-12-02 12:17:00 -08:00
xf86RandR12.h Clean up RandR12 bits on screen close (bug 27114) 2010-06-15 14:39:25 -07:00
xf86Rename.h Allow drivers to set crtc transforms. 2008-11-24 13:24:40 -08:00
xf86Rotate.c Replace usage of DamageRegionAppend with DamageDamageRegion to fix reportAfter. 2010-11-13 15:17:58 -08:00