From: Adam Sutton Date: Tue, 10 Jun 2014 09:27:59 +0000 (+0100) Subject: ssl: fix cleanup X-Git-Tag: v4.1~1984 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fda1a03171e7340395d974615f35aa9e936888f1;p=thirdparty%2Ftvheadend.git ssl: fix cleanup --- diff --git a/src/main.c b/src/main.c index 1f32b88d7..344f18b92 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */