summaryrefslogtreecommitdiff
path: root/usr.bin/signify
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2014-03-17 11:47:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2014-03-17 11:47:07 +0000
commite73c5d33266741a9340881ddb54bdef889d5f21f (patch)
treefa69ad30864645ae49edeb7b7231b99f5b06121f /usr.bin/signify
parentacf0d48209926319be0f33f39704140db1464266 (diff)
clean up after ourselves.
okay tedu@
Diffstat (limited to 'usr.bin/signify')
-rw-r--r--usr.bin/signify/signify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c
index 844e7e2f187..d2ed6b9b4dc 100644
--- a/usr.bin/signify/signify.c
+++ b/usr.bin/signify/signify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: signify.c,v 1.67 2014/03/17 04:09:39 tedu Exp $ */
+/* $OpenBSD: signify.c,v 1.68 2014/03/17 11:47:06 espie Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -514,6 +514,7 @@ verify(const char *pubkeyfile, const char *msgfile, const char *sigfile,
msg = verifyembedded(pubkeyfile, sigfile, quiet, &msglen);
fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666);
writeall(fd, msg, msglen, msgfile);
+ free(msg);
close(fd);
} else {
verifysimple(pubkeyfile, msgfile, sigfile, quiet);