[PATCH xserver 0/2] Fix for XKB geometry leaks when mapping changes

Rami Ylimäki rami.ylimaki at vincit.fi
Thu Mar 17 01:39:59 PDT 2011

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(-)

More information about the xorg-devel mailing list