diff options
-rw-r--r-- | grpmi/rpm/grpmi_rpm.xs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/grpmi/rpm/grpmi_rpm.xs b/grpmi/rpm/grpmi_rpm.xs index fba96e82..f67fe1f7 100644 --- a/grpmi/rpm/grpmi_rpm.xs +++ b/grpmi/rpm/grpmi_rpm.xs @@ -139,8 +139,10 @@ char * verify_sig_(char * file) } i = rpmVerifySignature(tmpfile, tag, ptr, count, result); - if (i != RPMSIG_OK) + if (i != RPMSIG_OK) { + unlink(tmpfile); return strdup(result); + } } unlink(tmpfile); if (!gpg_sig) |