xserver/hw
Alan Coopersmith 23b3b7199c xfree86: avoid memory leak on realloc failure
Found by Oracle Parfait 13.3 static analyzer:
   Memory leak [memory-leak]:
      Memory leak of pointer optname allocated with asprintf(&optname,
      "\"%s\"", p->name)
        at line 326 of hw/xfree86/common/xf86Configure.c in function
	'configureDeviceSection'.
          optname allocated at line 309 with asprintf(&optname, "\"%s\"",
	  p->name)

Fixes: code inherited from XFree86
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit fa711c486a)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1767>
2025-02-05 15:02:23 +01:00
..
kdrive ephyr: Fix incompatible pointer type build error 2024-05-12 08:00:00 +00:00
vfb mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
xfree86 xfree86: avoid memory leak on realloc failure 2025-02-05 15:02:23 +01:00
xnest Xnest: fix broken exposure events 2024-10-12 00:46:34 +00:00
xquartz Xquartz: ProcAppleDRICreatePixmap needs to use unswapped length to send reply 2024-04-03 19:35:46 +03:00
xwin mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
Makefile.am Drop XWayland DDX 2021-09-15 21:49:17 +03:00
meson.build Drop XWayland DDX 2021-09-15 21:49:17 +03:00