{"thread":{"id":"12959","subject":"[PATCH] verify-tag: Clean up the temporary file if gpg cannot be started.","startedAt":"2008-04-02T06:49:59Z","lastAt":"2008-04-02T06:49:59Z","messageCount":1,"participants":["Johannes Sixt"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"73533","messageId":"47F32C97.6050007@viscovery.net","threadId":"12959","inReplyTo":null,"subject":"[PATCH] verify-tag: Clean up the temporary file if gpg cannot be started.","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2008-04-02T06:49:59Z","receivedAt":"2008-04-02T06:49:59Z","isPatch":true,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"From: Johannes Sixt <johannes.sixt@telecom.at>\n\nSigned-off-by: Johannes Sixt <johannes.sixt@telecom.at>\n---\n builtin-verify-tag.c |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-verify-tag.c b/builtin-verify-tag.c\nindex f3ef11f..db81496 100644\n--- a/builtin-verify-tag.c\n+++ b/builtin-verify-tag.c\n@@ -46,8 +46,10 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)\n \tgpg.argv = args_gpg;\n \tgpg.in = -1;\n \targs_gpg[2] = path;\n-\tif (start_command(&gpg))\n+\tif (start_command(&gpg)) {\n+\t\tunlink(path);\n \t\treturn error(\"could not run gpg.\");\n+\t}\n\n \twrite_in_full(gpg.in, buf, len);\n \tclose(gpg.in);\n-- \n1.5.5.rc2.861.g18c5b.dirty\n"}]}