ossl: Fix memory leak when querying for tls supported cipher suites

This commit is contained in:
Albert Astals Cid 2020-06-22 22:55:29 +02:00
parent 5d027c8012
commit 6ee845ba60

View File

@ -5013,6 +5013,7 @@ public:
const SSL_CIPHER *thisCipher = sk_SSL_CIPHER_value(sk, i);
cipherList += QString::fromLatin1(SSL_CIPHER_standard_name(thisCipher));
}
sk_SSL_CIPHER_free(sk);
SSL_free(ssl);
SSL_CTX_free(ctx);