summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-18 00:54:24 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-18 00:55:03 +0200
commit40070445538ba6ede8dfef36e0a9824f71b33a06 (patch)
treea44af0a1d00cbfe2895b6019f6361ac459243de9
parentdeee4766a88a89cc4c77543c02bde93ba03e8d7c (diff)
downloadlibgit2-40070445538ba6ede8dfef36e0a9824f71b33a06.tar.gz
config: Typorrrrl
-rw-r--r--src/config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index ff7204b05..2b2bdb070 100644
--- a/src/config.c
+++ b/src/config.c
@@ -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);
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;
}