xserver/render
Peter Hutterer 93d1441487 cursor: fix AllocARGBCursor leak/double-free for psrcbits/pmaskbits/argb
AllocARGBCursor took ownership of the psrcbits/pmaskbits/argb arguments.
But if the initial calloc failed none of them were freed, without the
caller knowing about it. Depending on the code path, those arguments
would thus either leak or be double-freed.

Fix it by always freeing those on error and updating the callers
accordingly.

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2214>
2026-05-17 23:57:42 +00:00
..
animcur.c render: Avoid 0 or less animated cursors 2026-01-25 10:40:01 -08:00
filter.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
glyph.c render: handle -Wanalyzer-null-dereference in AllocateGlyphHash() 2026-04-04 16:14:37 +00:00
glyphstr.h render: fix refcounting of glyphs during ProcRenderAddGlyphs 2026-01-19 12:32:24 -08:00
matrix.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
miindex.c render: miindex.c does not need header guard macros 2026-01-25 10:40:01 -08:00
mipict.c dix: unexport Ones() 2026-01-25 10:39:57 -08:00
mipict.h render: Hide/unexport some implementation details 2015-07-08 16:40:57 -04:00
mirect.c render: Simplify miCompositeRects 2018-02-26 10:02:24 -05:00
mitrap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mitri.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
picture.c render: fix multiple mem leaks on err paths 2026-02-14 18:50:30 +00:00
picture.h Fix typos 2026-03-03 06:50:01 -03:00
picturestr.h render: Store and use all 16bpc of precision for solid pixels (v2.1) 2018-02-26 16:46:34 -05:00
render.c cursor: fix AllocARGBCursor leak/double-free for psrcbits/pmaskbits/argb 2026-05-17 23:57:42 +00:00