Merge pull request #6071 from 257/examples examples: Free the git_config and git_config_entry after use