Memoryleak in Xorg when using xrandr
Submitted by Luc
Assigned to Xorg Project Team
Link to original bug (#103991)
Description
Created attachment 135827 patch proposal solving the memory leak
In Xorg there is a memory leak each time xrandr is used. This is easy to test by issuing following command:
$ while true ; do xrandr --verbose > /dev/null ; done
This will gradually let X take more memory until the oom killer pops in. Reason is that each time the Monitor->Modes list grows, without pruning duplicates.
In attachment a patch is added which solves the issue. This was found and patched on the 1.19.5 Xserver version.
Patch 135827, "patch proposal solving the memory leak":
0001-Modes-handling-fix-memory-leak-on-xrandr-usage.patch
Version: git