diff options
author | Damien Miller <djm@mindrot.org> | 2014-01-20 12:41:53 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-01-20 12:41:53 +1100 |
commit | 3510979e83b6a18ec8773c64c3fa04aa08b2e783 (patch) | |
tree | 893d90fadca28d94c75251d694a70891b7f9ff85 | |
parent | 7eee358d7a6580479bee5cd7e52810ebfd03e5b2 (diff) |
- djm@cvs.openbsd.org 2014/01/20 00:08:48
[digest.c]
memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | digest.c | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20140120 | ||
2 | - (djm) OpenBSD CVS Sync | ||
3 | - djm@cvs.openbsd.org 2014/01/20 00:08:48 | ||
4 | [digest.c] | ||
5 | memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@ | ||
6 | |||
1 | 20140119 | 7 | 20140119 |
2 | - (dtucker) OpenBSD CVS Sync | 8 | - (dtucker) OpenBSD CVS Sync |
3 | - dtucker@cvs.openbsd.org 2014/01/17 06:23:24 | 9 | - dtucker@cvs.openbsd.org 2014/01/17 06:23:24 |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: digest.c,v 1.2 2014/01/17 05:26:41 dtucker Exp $ */ | 1 | /* $OpenBSD: digest.c,v 1.3 2014/01/20 00:08:48 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2013 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2013 Damien Miller <djm@mindrot.org> |
4 | * | 4 | * |
@@ -125,6 +125,7 @@ ssh_digest_free(struct ssh_digest_ctx *ctx) | |||
125 | { | 125 | { |
126 | EVP_MD_CTX_cleanup(&ctx->mdctx); | 126 | EVP_MD_CTX_cleanup(&ctx->mdctx); |
127 | memset(ctx, 0, sizeof(*ctx)); | 127 | memset(ctx, 0, sizeof(*ctx)); |
128 | free(ctx); | ||
128 | } | 129 | } |
129 | 130 | ||
130 | int | 131 | int |