int git_config_with_options(....) { char *repo_config = NULL; .... if (repo_config) free(repo_config); .... }