[reply]============================================================================================
I run into the same problem myself. If libcurl is linked with openssl support you have to free openssl ressources manually.
============================================================================================
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/ssl.h>
#define CURL_GLOBAL_INIT(X) { \
curl_global_init(X); \
}
#define CURL_GLOBAL_EXIT() { \
curl_global_cleanup(); \
CONF_modules_free(); \
ERR_remove_state(0); \
ENGINE_cleanup(); \
CONF_modules_unload(1); \
ERR_free_strings(); \
EVP_cleanup(); \
CRYPTO_cleanup_all_ex_data(); \
sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); \
}
[/reply]
============================================================================================
I run into the same problem myself. If libcurl is linked with openssl support you have to free openssl ressources manually.
============================================================================================
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/ssl.h>
#define CURL_GLOBAL_INIT(X) { \
curl_global_init(X); \
}
#define CURL_GLOBAL_EXIT() { \
curl_global_cleanup(); \
CONF_modules_free(); \
ERR_remove_state(0); \
ENGINE_cleanup(); \
CONF_modules_unload(1); \
ERR_free_strings(); \
EVP_cleanup(); \
CRYPTO_cleanup_all_ex_data(); \
sk_SSL_COMP_free(SSL_COMP_get_compression_methods()); \
}