ssl: fix cleanup

This commit is contained in:
Adam Sutton 2014-06-10 10:27:59 +01:00
parent a68d867cb3
commit fda1a03171

View file

@ -908,9 +908,7 @@ main(int argc, char **argv)
ERR_remove_state(0);
ERR_free_strings();
{
struct stack_st_SSL_COMP * pCOMP = SSL_COMP_get_compression_methods();
if (pCOMP)
sk_SSL_COMP_free(pCOMP);
sk_SSL_COMP_free(SSL_COMP_get_compression_methods());
}
/* end of OpenSSL cleanup code */