A simple program using libX11 shows the problem: Display *dsp = XOpenDisplay(NULL); XCloseDisplay(dsp); Every time this is done, 124 Bytes are leaked. XOpenDisplay is an essential call in Xlib programming, so probably every program using libX11 is affected. The corresponding upstream bug report is here https://bugs.freedesktop.org/show_bug.cgi?id=28526 with a fix here http://cgit.freedesktop.org/xcb/libxcb/commit/?id=5755582444ad0ba79e661ab3173cc38e9e588d83 I tested the above patch in my local overlay and it doesn't seem to cause any problems. The patch applies cleanly on top of libxcb-1.7.
Is there going to be a patched version? Or this bug is going to be resolved in the next version?
The fix is in version 1.8 and later, but they are not stable for all systems yet.
Basically it is fixed by 1.8+ and 1.8.1 is stable on most relevant archs already, so closing.