Hello openssl-users,
suppose that i have following code :
BIO * key=BIO_new(BIO_s_mem());
BUF_MEM * bm=BUF_MEM_new();
BIO_set_mem_buf(key, bm, 0);
BIO * b64=BIO_new(BIO_f_base64());
BIO * inp=BIO_push(b64,key);
now question : for what objects should i call free functions to
have no memory leaks? For all that i created or only for "root" inp
which consist all object ? i.e: whats correct :
only BIO_free (inp);
or:
BIO_free (inp);
BIO_free (b64);
BIO_free (key);
BUF_MEM_free(bm);
Thank you for attention !
--
Best regards,
Andrey Kubyshev mailto:[EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]