xserver/hw/xfree86
Paulo Zanoni 3d635fe84d Correctly free config file names
We call xf86penConfigDirFiles twice, so we overwrite the configDirPath
variable, losing the pointer. If we move the pointer management to the
upper layer (the function callers), they will be able to call these
functions as many times as they want, but they'll have to free those
returned values.

v2: don't leak inside XWin

4,097 bytes in 1 blocks are definitely lost in loss record 625 of 632
   at 0x4C2779D: malloc (in vgpreload_memcheck-amd64-linux.so)
   by 0x4D7899: DoSubstitution (scan.c:615)
   by 0x4D87B0: OpenConfigDir (scan.c:845)
   by 0x4D8A2D: xf86openConfigDirFiles (scan.c:955)
   by 0x49031F: xf86HandleConfigFile (xf86Config.c:2327)
   by 0x49A9BF: InitOutput (xf86Init.c:365)
   by 0x425A7A: main (main.c:204)

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2011-11-24 17:47:37 -02:00
..
common Correctly free config file names 2011-11-24 17:47:37 -02:00
ddc Remove redundant redeclarations of functions in the same header file 2011-11-23 12:15:07 -08:00
dixmods xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
doc Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
dri Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
dri2 dri2: Register the DRI2DrawableType after server regeneration 2011-11-18 11:26:03 -08:00
exa xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
fbdevhw Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
i2c Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
int10 int10: Port internal users off xf86MapVidMem 2011-10-15 21:18:46 -07:00
loader FindModule: stop copying const char *dirname to char *dirpath 2011-11-23 12:15:07 -08:00
man xorg.conf.man: fix 382: warning: missing `)' (got `R') #35054 2011-10-19 17:22:18 -07:00
modes Fix gcc -Wwrite-strings warnings in xf86Modes code 2011-11-23 12:15:07 -08:00
os-support sun_agp: cast key to uintptr_t before casting to (int *) 2011-11-23 12:15:06 -08:00
parser Correctly free config file names 2011-11-24 17:47:37 -02:00
ramdac Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
shadowfb xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
utils Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
vbe Fix gcc -Wwrite-strings warnings in xf86 ddx 2011-11-23 12:15:07 -08:00
vgahw pci: Remove xf86MapDomainMemory 2011-10-15 21:18:46 -07:00
x86emu Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
xaa xfree86: Link modules with -module 2011-10-15 21:18:47 -07:00
.gitignore xfree86: Move sdksyms generation to ddx toplevel 2011-06-23 05:28:31 -07:00
Makefile.am sdksyms.sh may not be executable. 2011-10-01 17:35:19 +02:00
sdksyms.sh xfree86: Deprecate the use of xf86PciInfo.h 2011-11-18 11:26:02 -08:00
xorgconf.cpp xfree86: use sed rather than cpp to perform string substitutions 2011-01-18 15:11:14 -08:00