git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Release config lock if the regex is invalid
@ 2006-05-07 21:36 Pavel Roskin
  2006-05-07 23:37 ` Junio C Hamano
  2006-05-08  0:32 ` Johannes Schindelin
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Roskin @ 2006-05-07 21:36 UTC (permalink / raw)
  To: git

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;
 			}

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-08 11:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-07 21:36 [PATCH] Release config lock if the regex is invalid Pavel Roskin
2006-05-07 23:37 ` Junio C Hamano
2006-05-08  0:32 ` Johannes Schindelin
2006-05-08  2:38   ` Junio C Hamano
2006-05-08 11:28     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).