mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
openssl: cleanup must free compression methods
- Free compression methods if OpenSSL 1.0.2 to avoid a memory leak. Bug: https://github.com/curl/curl/issues/817 Reported-by: jveazey@users.noreply.github.com
This commit is contained in:
parent
3123dad89c
commit
3caaeffbe8
@ -747,6 +747,11 @@ void Curl_ossl_cleanup(void)
|
||||
|
||||
/* Free all memory allocated by all configuration modules */
|
||||
CONF_modules_free();
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10002003L && \
|
||||
OPENSSL_VERSION_NUMBER <= 0x10002FFFL
|
||||
SSL_COMP_free_compression_methods();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user