mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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> (cherry picked from commitc34f59ee15)