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

index 866406406b3109b4da44dc28178be73febbc8125..47f7f6c36061eeac7efca74124d31c03ed08633c 100644 (file)
@@ -482,6 +482,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);