From: Ben Laurie Date: Fri, 25 Nov 2005 14:26:12 +0000 (+0000) Subject: Fix memory leak. X-Git-Tag: OpenSSL_0_9_8b~79 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec7033745e791696392b45beca5232f97da7710f;p=oweals%2Fopenssl.git Fix memory leak. --- 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; }