adding missing BIO_free (issue #138)

This commit is contained in:
csoler 2015-10-20 18:16:18 -04:00
parent febea809b1
commit b2dbf9d30a

View File

@ -595,11 +595,12 @@ int ops_rsa_public_encrypt(unsigned char *out,const unsigned char *in,
n=RSA_public_encrypt(length,in,out,orsa,RSA_NO_PADDING); n=RSA_public_encrypt(length,in,out,orsa,RSA_NO_PADDING);
if (n==-1) if (n==-1)
{ {
BIO *fd_out; BIO *fd_out;
fd_out=BIO_new_fd(fileno(stderr), BIO_NOCLOSE); fd_out=BIO_new_fd(fileno(stderr), BIO_NOCLOSE);
ERR_print_errors(fd_out); ERR_print_errors(fd_out);
} BIO_free(fd_out) ;
}
orsa->n=orsa->e=NULL; orsa->n=orsa->e=NULL;
RSA_free(orsa); RSA_free(orsa);