summaryrefslogtreecommitdiff
path: root/digest.c
diff options
context:
space:
mode:
authordjm <djm>2014-01-20 01:41:53 +0000
committerdjm <djm>2014-01-20 01:41:53 +0000
commitca4fe166a6066fd63cee01ae59850ca0215d7fb8 (patch)
tree90f04c5b6377c48d9fa989fc78a685f6a131a067 /digest.c
parent24ceaffeafd3779171584109d5b7454cf7d099ea (diff)
downloadopenssh-ca4fe166a6066fd63cee01ae59850ca0215d7fb8.tar.gz
- djm@cvs.openbsd.org 2014/01/20 00:08:48
[digest.c] memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@
Diffstat (limited to 'digest.c')
-rw-r--r--digest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/digest.c b/digest.c
index d6004e7d..a221819e 100644
--- a/digest.c
+++ b/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>
*
@@ -125,6 +125,7 @@ ssh_digest_free(struct ssh_digest_ctx *ctx)
{
EVP_MD_CTX_cleanup(&ctx->mdctx);
memset(ctx, 0, sizeof(*ctx));
+ free(ctx);
}
int