]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
ssl: fix cleanup
authorAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Jun 2014 09:27:59 +0000 (10:27 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Tue, 10 Jun 2014 09:27:59 +0000 (10:27 +0100)
src/main.c

index 1f32b88d76c7ceb951e4623e1e25cedff43f5206..344f18b928fc4a01beb57188f07ab68e9a2629ca 100644 (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 */