Running "setxkbmap" repeatedly to change the keyboard mapping may lead to leaking of geometry related XKB data. The "setxkbmap" command does XkbGetKbdByName request, which copies keymap using XkbCopyKeymap, but the copying doesn't always release allocated pointers in _XkbCopyGeom.
Rami Ylimäki (2): xkb: Introduce helper function to handle similar reallocations. xkb: Prevent leaking of XKB geometry information on copy. xkb/xkbUtils.c | 159 ++++++++++++++++++++++++++------------------------------ 1 files changed, 74 insertions(+), 85 deletions(-)
_______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel