diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-05-20 16:44:01 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-05-20 16:44:01 -0400 |
commit | 3caaeffbe8ded4deaeb946d23631b04507bee408 (patch) | |
tree | 4021657d940a1405021925b44abdc03667852a0c /lib/vtls | |
parent | 3123dad89c2739fccce9404eb83819740d4f2d2f (diff) |
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
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/openssl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 6e3335e44..3a4bde5b3 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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 } /* |