Reference

XCopyColormapAndFree(3x) on Linux

The text 948de62bdf6d, as Debian 1.1 (Buzz) shipped it.

create, copy, or destroy colormaps and color structure

XCopyColormapAndFree(3x) on Linux now