diff options
Diffstat (limited to 'gpg-interface.c')
-rw-r--r-- | gpg-interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpg-interface.c b/gpg-interface.c index 455b6c04b4..05ca6ecbfd 100644 --- a/gpg-interface.c +++ b/gpg-interface.c @@ -209,13 +209,13 @@ int verify_signed_buffer(const char *payload, size_t payload_size, fd = mks_tempfile_t(&temp, ".git_vtag_tmpXXXXXX"); if (fd < 0) return error_errno(_("could not create temporary file")); - if (write_in_full(fd, signature, signature_size) < 0) { + if (write_in_full(fd, signature, signature_size) < 0 || + close_tempfile(&temp) < 0) { error_errno(_("failed writing detached signature to '%s'"), temp.filename.buf); delete_tempfile(&temp); return -1; } - close_tempfile(&temp); argv_array_pushl(&gpg.args, gpg_program, |