Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit.c: make find_commit_subject() more robust
[gitweb.git]
/
config.c
diff --git
a/config.c
b/config.c
index 27a73c85005fbf709d47adb1458bea688993eba2..69824ebddbdf46660fa6f1ef481add949820d52c 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-2116,6
+2116,9
@@
int git_config_set_multivar_in_file(const char *config_filename,
contents_sz - copy_begin) <
contents_sz - copy_begin)
goto write_err_out;
+
+ munmap(contents, contents_sz);
+ contents = NULL;
}
if (commit_lock_file(lock) < 0) {