Richard Dykiel <[EMAIL PROTECTED]>:

> Hello, the simple piece of code below results in "4243 bytes leaked
> in 280 chunks" as reported by the CRYPTO debug memory functions.
> 
> Most leaks are caused by the call to SSLeay_add_all_algorithms.
[...]
> Am I missing some mandatory cleanup call?

Yes (as you can see by using the openssl command line tool,
which calls SSLeay_add_all_algorithms after having enabled memory
leak checking; see the definition of apps_startup in apps/apps.h).
Call EVP_cleanup() before checking for memory leaks.
(You'll also want to call ERR_remove_state and ERR_free_strings.)
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to