WTP can join w/o any memory leaks

This commit is contained in:
2022-08-15 16:31:26 +02:00
parent df5e2bcbb7
commit a051ba41de
17 changed files with 119 additions and 99 deletions

View File

@ -207,11 +207,14 @@ void dtls_openssl_data_destroy(struct dtls_openssl_data * d){
if (!d)
return;
if (d->ctx)
SSL_CTX_free(d->ctx);
if (d->ssl)
SSL_free(d->ssl);
if (d->ctx)
SSL_CTX_free(d->ctx);
if (d->biomethod)
BIO_meth_free(d->biomethod);
free(d);