summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2005-11-25 14:26:12 +0000
committerBen Laurie <ben@openssl.org>2005-11-25 14:26:12 +0000
commitec7033745e791696392b45beca5232f97da7710f (patch)
treed9c967af95ca7f7e794773beff215b13b51e2ab7 /crypto
parent9e31e631479d057f8c31b88cfb3846ccd357dd87 (diff)
Fix memory leak.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rsa/rsa_lib.c2
1 files changed, 2 insertions, 0 deletions
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;
}