mirror of
https://github.com/curl/curl.git
synced 2026-05-07 13:17:30 +03: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
1 changed files with 5 additions and 0 deletions
|
|
@ -747,6 +747,11 @@ void Curl_ossl_cleanup(void)
|
||||||
|
|
||||||
/* Free all memory allocated by all configuration modules */
|
/* Free all memory allocated by all configuration modules */
|
||||||
CONF_modules_free();
|
CONF_modules_free();
|
||||||
|
|
||||||
|
#if OPENSSL_VERSION_NUMBER >= 0x10002003L && \
|
||||||
|
OPENSSL_VERSION_NUMBER <= 0x10002FFFL
|
||||||
|
SSL_COMP_free_compression_methods();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue