Fix memory leak.
authorBen Laurie <ben@openssl.org>
Fri, 25 Nov 2005 14:26:12 +0000 (14:26 +0000)
committerBen Laurie <ben@openssl.org>
Fri, 25 Nov 2005 14:26:12 +0000 (14:26 +0000)
crypto/rsa/rsa_lib.c

index 533a711eda2b8ca092af80cbfcb99f4518db4f4b..66cd15ff6d90f3575255275ff866e9902782424b 100644 (file)
@@ -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;
 }