Add function to free compression methods.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 28 Feb 2014 18:37:08 +0000 (18:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 1 Mar 2014 23:14:08 +0000 (23:14 +0000)
commit976c58302b13d085edb3ab822f5eac4b2f1bff95
treed9ddbcc1bfd210afc13ac6f3360f3f24a177d338
parentb60272b01fcb4f69201b3e1659b4f7e9e9298dfb
Add function to free compression methods.

Although the memory allocated by compression methods is fixed and
cannot grow over time it can cause warnings in some leak checking
tools. The function SSL_COMP_free_compression_methods() will free
and zero the list of supported compression methods. This should
*only* be called in a single threaded context when an application
is shutting down to avoid interfering with existing contexts
attempting to look up compression methods.
ssl/ssl.h
ssl/ssl_ciph.c