config: Typorrrrl

This commit is contained in:
Vicent Marti 2011-06-18 00:54:24 +02:00
parent deee4766a8
commit 4007044553

View File

@ -93,7 +93,11 @@ int git_config_add_file_ondisk(git_config *cfg, const char *path, int priority)
error = git_config_add_file(cfg, file, priority); error = git_config_add_file(cfg, file, priority);
if (error < GIT_SUCCESS) { if (error < GIT_SUCCESS) {
file->free(file); /* free manually; the file is not owned by the ODB yet */ /*
* free manually; the file is not owned by the config
* instance yet and will not be freed on cleanup
*/
file->free(file);
return error; return error;
} }