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:15:25 +0000 (23:15 +0000)
commitdb7b5e0d768485d9c7f8d3eaa8f28d2f254e20d6
treeeda58a81e234418492f6f472d79cb9c1faf51c46
parent65370f9bbcbfc4a5bb87aa5e30f74da48966b7c1
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.
(cherry picked from commit 976c58302b13d085edb3ab822f5eac4b2f1bff95)
ssl/ssl.h
ssl/ssl_ciph.c