From ec7033745e791696392b45beca5232f97da7710f Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 25 Nov 2005 14:26:12 +0000 Subject: [PATCH] Fix memory leak. --- crypto/rsa/rsa_lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c index 533a711eda..66cd15ff6d 100644 --- a/crypto/rsa/rsa_lib.c +++ b/crypto/rsa/rsa_lib.c @@ -412,6 +412,8 @@ err: BN_CTX_end(ctx); if (in_ctx == NULL) BN_CTX_free(ctx); + if(rsa->e == NULL) + BN_free(e); return ret; } -- 2.40.0