diff options
-rw-r--r-- | checksig.c | 1 | ||||
-rw-r--r-- | lib/signature.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/checksig.c b/checksig.c index 7cc377263..94b01a6cf 100644 --- a/checksig.c +++ b/checksig.c @@ -243,6 +243,7 @@ int doCheckSig(int pgp, char **argv) } freeIterator(sigIter); res += res2; + unlink(sigtarget); if (res2) { if (isVerbose()) { diff --git a/lib/signature.c b/lib/signature.c index 7d15ae319..e2ac3ad9b 100644 --- a/lib/signature.c +++ b/lib/signature.c @@ -384,6 +384,7 @@ static int verifyPGPSignature(char *datafile, void *sig, fclose(file); waitpid(pid, &status, 0); + unlink(sigfile); if (!WIFEXITED(status) || WEXITSTATUS(status)) { return 1; } |