xserver/randr
Olivier Fourdan c34f59ee15 randr: Do not leak the provider property
When changing the RandR provider property, if the property does not
already exists, it is created.

In case of error, however, it doesn't get freed, leading to a leak of
the allocated property.

Make sure to free the RandR property in case of error if was to be
added.

Found by OpenScanHub.

Fixes: 3c3a4b767 - randr: Check for overflow in RRChangeProviderProperty()
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2035>
2025-06-24 06:32:54 +00:00
..
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
randr.c Revert "os: move out extension disable flags to corresponing extensions" 2025-06-17 20:54:49 +00:00
randrstr.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
randrstr_priv.h Revert "randr: let SProc*'s call their Proc*'s directly" 2025-06-11 13:44:43 -07:00
rrcrtc.c Revert "randr: use dixDestroyPixmap() instead of direct driver call" 2025-06-17 20:02:16 +00:00
rrdispatch.c Revert "randr: let SProc*'s call their Proc*'s directly" 2025-06-11 13:44:43 -07:00
rrinfo.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrlease.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrmode.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrmonitor.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rroutput.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrpointer.c dix: unexport GetSpritePosition() 2024-09-02 16:43:29 +00:00
rrproperty.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrprovider.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrproviderproperty.c randr: Do not leak the provider property 2025-06-24 06:32:54 +00:00
rrscreen.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00
rrsdispatch.c Revert "randr: let SProc*'s call their Proc*'s directly" 2025-06-11 13:44:43 -07:00
rrtransform.c randr: Silence -Wshift-negative-value warnings 2015-10-19 11:51:52 -04:00
rrtransform.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
rrxinerama.c Revert "randr: use struct initializer for reply structs" 2025-06-11 13:43:47 -07:00