tempfile: release deactivated strbufs instead of resetting
[gitweb.git] / gpg-interface.c
index 05ca6ecbfd915a31fe468053560300e1f4873cc3..4ea2597ff4cb304c82419eb515b07a04673b7f5f 100644 (file)
@@ -210,7 +210,7 @@ int verify_signed_buffer(const char *payload, size_t payload_size,
        if (fd < 0)
                return error_errno(_("could not create temporary file"));
        if (write_in_full(fd, signature, signature_size) < 0 ||
-           close_tempfile(&temp) < 0) {
+           close_tempfile_gently(&temp) < 0) {
                error_errno(_("failed writing detached signature to '%s'"),
                            temp.filename.buf);
                delete_tempfile(&temp);