Commit 3caaeffb authored by Jay Satiro's avatar Jay Satiro
Browse files

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: default avatar <jveazey@users.noreply.github.com>
parent 3123dad8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
}

/*