Free strings returned by XGetAtomName to avoid leakage.

Call XFree() on the string returned by XGetAtomName() in the Linux part of the Shell to avoid a memory leak.
This is true but it's still a valid patch.
Merge then replace zero with NULL in a new commit?