xserver/hw/xfree86/drivers
Alan Coopersmith 309ec5a4a7 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>
(cherry picked from commit bf63d9b34e)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1767>
2025-02-05 15:02:23 +01:00
..
inputtest xfree86: Fix event data alignment in inputtest driver 2022-07-01 15:29:34 +03:00
modesetting modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE 2025-02-05 15:02:23 +01:00
Makefile.am xfree86: Implement a test input driver 2020-12-14 01:12:10 +00:00