Memory leak fix: local blinding structure not freed in rsa_eay_private_decrypt()
authorRichard Levitte <levitte@openssl.org>
Tue, 15 Apr 2003 13:01:37 +0000 (13:01 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 15 Apr 2003 13:01:37 +0000 (13:01 +0000)
crypto/rsa/rsa_eay.c

index aff8634..ee2a70b 100644 (file)
@@ -504,6 +504,8 @@ err:
        if (ctx != NULL) BN_CTX_free(ctx);
        BN_clear_free(&f);
        BN_clear_free(&ret);
+       if (local_blinding)
+               BN_BLINDING_free(blinding);
        if (buf != NULL)
                {
                OPENSSL_cleanse(buf,num);