@lanodan @ElDeadKennedy @Junes @SilverDeth @ceo_of_monoeye_dating @j @p Also RE: if(data) XFree(data)
XFree accepting a NULL pointer isn't officially in the X11R7.7 spec, but is in the man page for Debian, so it probably is not portable across platforms. Amazing. Not that it matters since the server should return a valid address on Success no matter what.
https://xorg.freedesktop.org/archive/X11R7.7/doc/man/man3/XFree.3.xhtml