xserver/hw
Alan Coopersmith 7cc0695cf7 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:24:41 +01:00
..
kdrive (!1688) os: directly set console verbosity level, instead of using LogSetParameter() 2024-09-18 17:23:12 +02:00
vfb (submit/unexport-ddx-callbacks) os: rename ddx.h to ddx_priv.h 2024-09-18 17:23:12 +02:00
xfree86 modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE 2024-10-31 16:24:41 +01:00
xnest xnest: add pixmap depths to global depth list 2024-09-19 15:03:01 +02:00
xquartz (!1688) os: unexport internal logging functions 2024-09-18 17:23:12 +02:00
xwayland (!1691) os: log: replace VErrorF() by LogVMessageVerb() 2024-09-19 15:03:01 +02:00
xwin xwin: fix memleak on freeing pixmaps 2024-10-31 15:44:46 +01:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00