fixed "free(): invalid pointer" when XDG_CONFIG_HOME is set
Merge pull request #16 from gs93/invalid_pointer

fixed "free(): invalid pointer" when XDG_CONFIG_HOME is set