[ConfigManager] Fix a memory leak of GOptionContext