mirror of
https://github.com/git/git.git
synced 2025-03-23 01:36:42 +00:00
Release config lock if the regex is invalid
Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
245f1029d6
commit
5d8ee9ceb8
2
config.c
2
config.c
@ -514,6 +514,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user