mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-05 19:44:57 -04:00
adding missing BIO_free (issue #138)
This commit is contained in:
parent
febea809b1
commit
b2dbf9d30a
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue