Implement certificate chain verification; fix leak; fix return code
[claws.git] / src / etpan / etpan-ssl.c
index c9dc9d8083d0e130ee09da4fe5a6d7a038f3d323..f99955b7562d5f678d08816a96290547e6fee2e7 100644 (file)
@@ -125,6 +125,7 @@ gboolean etpan_certificate_check(mailstream *stream, const char *host, gint port
 
        for (i = 0; i < chain_len; i++)
                gnutls_x509_crt_deinit(certs[i]);
+       free(certs);
 
        return result;
 #endif