From: Pavel Roskin Date: Sun, 7 May 2006 21:36:12 +0000 (-0400) Subject: Release config lock if the regex is invalid X-Git-Tag: v1.3.3~19 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5d8ee9ceb8912c83336191d32b8898943b8944b8?hp=245f1029d674b95d63b5faea2269f98d28b3adb2 Release config lock if the regex is invalid Signed-off-by: Pavel Roskin Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index 87fb22041e..11d65f8c70 100644 --- a/config.c +++ b/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; }