[PATCH] Release config lock if the regex is invalid

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Roskin
Date: Sunday, May 7, 2006 - 2:36 pm

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

 config.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/config.c b/config.c
index 41066e4..61eacef 100644
--- a/config.c
+++ b/config.c
@@ -516,6 +516,8 @@ int git_config_set_multivar(const char* 
 				fprintf(stderr, "Invalid pattern: %s\n",
 					value_regex);
 				free(store.value_regex);
+				close(fd);
+				unlink(lock_file);
 				ret = 6;
 				goto out_free;
 			}

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Release config lock if the regex is invalid, Pavel Roskin, (Sun May 7, 2:36 pm)
Re: [PATCH] Release config lock if the regex is invalid, Junio C Hamano, (Sun May 7, 4:37 pm)
Re: [PATCH] Release config lock if the regex is invalid, Johannes Schindelin, (Sun May 7, 5:32 pm)
Re: [PATCH] Release config lock if the regex is invalid, Junio C Hamano, (Sun May 7, 7:38 pm)
Re: [PATCH] Release config lock if the regex is invalid, Johannes Schindelin, (Mon May 8, 4:28 am)