xserver/hw
Alan Coopersmith 6c4c4bbfff 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>
(cherry picked from commit bf63d9b34e)
2026-01-25 10:39:58 -08:00
..
kdrive treewide: replace xnfcalloc() calls by XNFcallocarray() 2026-01-25 10:39:55 -08:00
vfb Xvfb: Support up to 13 mouse buttons 2024-01-08 11:16:11 +00:00
xfree86 modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE 2026-01-25 10:39:58 -08:00
xnest include: dixfontstr.h: drop silent dependency on libxfont2 2026-01-25 10:39:56 -08:00
xquartz xquartz: drop unused code 2026-01-25 10:39:57 -08:00
xwayland xwayland/glamor/gbm: Don't close fence_fd after xwl_glamor_wait_fence 2026-01-25 10:39:57 -08:00
xwin xwin: fix memleak on freeing pixmaps 2026-01-25 10:39:57 -08:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00