xserver-multidpi/hw
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
..
dmx dmx: Build fix for -Werror=implicit-function-declaration 2011-11-23 12:15:07 -08:00
kdrive Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
vfb Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
xfree86 Correctly free config file names 2011-11-24 17:47:37 -02:00
xnest Xnest: Match the host's keymap 2011-10-21 10:29:51 -07:00
xquartz Convert strncpy/strncat to strlcpy/strlcat 2011-11-23 12:15:05 -08:00
xwin Correctly free config file names 2011-11-24 17:47:37 -02:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00