xserver/hw/xfree86
Alan Coopersmith 92d73b23a4 modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE
Found by Oracle Parfait 13.3 static analyzer:
   Memory leak [memory-leak]:
      Memory leak of pointer event allocated with calloc(1, 16)
        at line 470 of hw/xfree86/drivers/modesetting/present.c in
	function 'ms_present_unflip'.
          event allocated at line 431 with calloc(1, 16)
          event leaks when ms_present_check_unflip(...) == 0 at line 438
              and i >= config->num_crtc at line 445

Fixes: 13c7d53df ("modesetting: Implement page flipping support for Present.")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1730>
2024-10-31 16:22:48 +01:00
..
common xfree86: avoid memory leak on realloc failure 2024-10-31 16:22:47 +01:00
ddc (submit/cleanup-api-xfree86) xfree86: ddc: move private definitions from xf86DDC.h to xf86DDC_priv.h 2024-08-29 20:51:22 +02:00
dixmods (submit/miext-extinit) treewide: clean up remaining consumers of extinit.h 2024-08-29 20:51:20 +02:00
doc treewide: replace xnfcalloc() calls by XNFcallocarray() 2024-07-26 23:41:33 +00:00
dri (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
dri2 (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
drivers modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE 2024-10-31 16:22:48 +01:00
exa treewide: replace xnfalloc() calls to XNFalloc() 2024-07-26 23:41:33 +00:00
fbdevhw xfree86: fbdevhw: fix pci detection on recent Linux 2024-10-31 16:22:47 +01:00
glamor_egl (submit/drop-obsolete-have-dix-config.h) drop obsolete HAVE_DIX_CONFIG_H 2024-08-29 20:51:21 +02:00
i2c treewide: replace xnfreallocarray macro call by XNFreallocarray() 2024-07-26 23:41:33 +00:00
int10 (submit/cleanup-api-xfree86) xfree86: int10: move private defs out of xf86int10.h 2024-08-29 20:51:22 +02:00
loader (submit/drop-cygwin) drop remains of cygwin support 2024-08-29 20:51:22 +02:00
man xorg.conf.man: Add missing new paragraph mark before AllowByteSwappedClients 2024-03-23 14:30:43 -07:00
modes (submit/rename-panoramix-sym) rename old symbol PANORAMIX to XINERAMA 2024-08-29 20:51:22 +02:00
os-support xfree86: os-support: bsd: fix missing include of xf86_OSproc.h 2024-10-31 15:39:06 +01:00
parser Fix a double-free on syntax error without a new line. 2024-10-31 15:39:06 +01:00
ramdac (submit/cursor-api) dix: unexport cursor refcounting functions 2024-08-29 20:51:21 +02:00
shadowfb Remove autotools support 2021-10-27 13:15:40 +03:00
utils Remove autotools support 2021-10-27 13:15:40 +03:00
vgahw treewide: replace xnfcalloc() calls by XNFcallocarray() 2024-07-26 23:41:33 +00:00
x86emu xfree86: x86emu: rename segment register fields 2024-06-18 00:41:38 +00:00
xkb (submit/dixgrabs.h) dix: move non-public functions out from dixgrabs.h 2024-08-29 20:51:21 +02:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build (submit/drop-cygwin) drop remains of cygwin support 2024-08-29 20:51:22 +02:00
sdksyms.sh (submit/unexport-xistub) include: unexport XIstubs.h 2024-08-29 20:51:22 +02:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00