summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);