From 3ac32253f98a66e7e55f5657bfe259d286e33edc Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 13 Mar 2023 12:04:29 +0100 Subject: [PATCH] wincng: fix memory leak in libssh2_dh_key_pair() (#829) Fixes #722 --- src/wincng.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wincng.c b/src/wincng.c index 6b24bf6f..e990af16 100644 --- a/src/wincng.c +++ b/src/wincng.c @@ -2516,6 +2516,8 @@ _libssh2_dh_key_pair(_libssh2_dh_ctx *dhctx, _libssh2_bn *public, } } + _libssh2_wincng_safe_free(blob, key_length_bytes); + return 0; }