git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Release config lock if the regex is invalid

From
PRPavel Roskin <proski@gnu.org>
Date
May 7, 2006, 21:36 UTC
Message-ID
<20060507213612.27887.28600.stgit@dv.roinet.com>
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;
 			}
Next: Junio C Hamano
Message 1 of 5 in “Release config lock if the regex is invalid”
  1. Release config lock if the regex is invalidPavel Roskin, May 7, 2006
  2. Junio C HamanoMay 7, 2006
  3. Johannes SchindelinMay 8, 2006
  4. Junio C HamanoMay 8, 2006
  5. Johannes SchindelinMay 8, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.