summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2014-01-20 00:08:48 +0000
committerdjm <djm@openbsd.org>2014-01-20 00:08:48 +0000
commitb0ab63c725af6bd42cda06fb267c6860335d69b8 (patch)
tree1a405982226e62d287a318d4c3450b2473b0a199
parentappend to rather than truncating the log file (diff)
downloadwireguard-openbsd-b0ab63c725af6bd42cda06fb267c6860335d69b8.tar.xz
wireguard-openbsd-b0ab63c725af6bd42cda06fb267c6860335d69b8.zip
memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@
-rw-r--r--usr.bin/ssh/digest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/digest.c b/usr.bin/ssh/digest.c
index 05cf56bd83a..cb962e1c486 100644
--- a/usr.bin/ssh/digest.c
+++ b/usr.bin/ssh/digest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: digest.c,v 1.2 2014/01/17 05:26:41 dtucker Exp $ */
+/* $OpenBSD: digest.c,v 1.3 2014/01/20 00:08:48 djm Exp $ */
/*
* Copyright (c) 2013 Damien Miller <djm@mindrot.org>
*
@@ -119,6 +119,7 @@ ssh_digest_free(struct ssh_digest_ctx *ctx)
{
EVP_MD_CTX_cleanup(&ctx->mdctx);
memset(ctx, 0, sizeof(*ctx));
+ free(ctx);
}
int