Reference

XCopyColormapAndFree(3x) on Linux

The text de7decbc5de0, as Debian 1.2 (Rex) shipped it.

create, copy, or destroy colormaps and color structure

XCopyColormapAndFree(3x) on Linux now