diff options
author | Ben Laurie <ben@openssl.org> | 2005-11-25 14:26:12 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2005-11-25 14:26:12 +0000 |
commit | ec7033745e791696392b45beca5232f97da7710f (patch) | |
tree | d9c967af95ca7f7e794773beff215b13b51e2ab7 /crypto | |
parent | 9e31e631479d057f8c31b88cfb3846ccd357dd87 (diff) |
Fix memory leak.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rsa/rsa_lib.c | 2 |
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; } |