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

index 027b4dc754f5fb0f461a61611d879a9bdda6bcd2..e0d286266e0c29033a70bb71c683c8f71a888b51 100644 (file)
@@ -484,6 +484,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);