xserver/dri3
Michel Dänzer 05150863c6 dri3: Free formats in cache_formats_and_modifiers
Fixes leak:

==15672== 60 bytes in 1 blocks are definitely lost in loss record 3,803 of 8,127
==15672==    at 0x4840718: malloc (vg_replace_malloc.c:392)
==15672==    by 0x2F2698: XNFreallocarray (alloc.c:55)
==15672==    by 0x1ADAA9: xwl_dmabuf_get_formats_for_device (xwayland-dmabuf.c:207)
==15672==    by 0x1ADAA9: xwl_glamor_get_formats (xwayland-dmabuf.c:248)
==15672==    by 0x303D86: cache_formats_and_modifiers (dri3_screen.c:176)
==15672==    by 0x303D86: dri3_get_supported_modifiers (dri3_screen.c:229)
==15672==    by 0x30331A: proc_dri3_get_supported_modifiers (dri3_request.c:389)
==15672==    by 0x217B6B: Dispatch (dispatch.c:550)
==15672==    by 0x21B9A0: dix_main (main.c:276)
==15672==    by 0x51086C9: (below main) (libc_start_call_main.h:58)

Fixes: a42992a4cc ("dri3: rework format/modifier caching")
(cherry picked from commit 3b6b88c184)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1515>
2024-05-03 10:30:56 +02:00
..
dri3.c dri3: Include dix-config.h instead of xorg-config.h 2020-09-15 11:38:55 +02:00
dri3.h dri3: Switch fds_from_pixmap to stdint types. 2018-05-08 11:59:41 -04:00
dri3_priv.h dri3: Include dix-config.h instead of xorg-config.h 2020-09-15 11:38:55 +02:00
dri3_request.c dri3: Include dix-config.h instead of xorg-config.h 2020-09-15 11:38:55 +02:00
dri3_screen.c dri3: Free formats in cache_formats_and_modifiers 2024-05-03 10:30:56 +02:00
meson.build Drop Xorg DDX 2023-07-18 12:52:07 +00:00