Merge branch 'fix'
[gitweb.git] / config.c
index 41066e4f4e0408b23068e9a75911784cbefc65ac..61eacefbee9d1466cd392801af12cae315750578 100644 (file)
--- a/config.c
+++ b/config.c
@@ -516,6 +516,8 @@ int git_config_set_multivar(const char* key, const char* value,
                                fprintf(stderr, "Invalid pattern: %s\n",
                                        value_regex);
                                free(store.value_regex);
+                               close(fd);
+                               unlink(lock_file);
                                ret = 6;
                                goto out_free;
                        }