title: OpenSSL::SSL_library_init() memory leak
body: <p>Recently I have started studying about memory leaks in C++, so I may ask a naive questions.<br>
  I have a c++ library that is using OpenSSL - my task is to check if there are memory leaks in this lib. I have run Visual Leak Detector to check mem leaks.<br>
  I see that the calls to <code>SSL_library_init();</code> and  <code>SSL_load_error_strings();</code> are leading leak - quick googling is showing that at the end of usage I have to call the followings:  </p>
  
  <pre><code>CONF_modules_free();
  ERR_remove_state(0);
  ENGINE_cleanup();
  CONF_modules_unload(1);
  ERR_free_strings();
  EVP_cleanup();
  CRYPTO_cleanup_all_ex_data();
  </code></pre>
  
  <p>The leak indeed decreased, but still there are two leaks(that the VLD tool shows me) that happen because the <code>SSL_library_init</code> call.<br>
  does anyone know what else I have to do in order to free all the mem leaks?</p>