Revert "altcp_tls_mbedtls: ensure configuration is properly freed"

This reverts commit d84a84e5ca.

This commit seemed to be merged in an invalid order
This commit is contained in:
Simon Goldschmidt 2020-03-05 21:40:23 +01:00
parent 21cde5dc9e
commit 87618e2f2a

View File

@ -1048,8 +1048,6 @@ altcp_tls_free_config(struct altcp_tls_config *conf)
if (conf->ca) {
mbedtls_x509_crt_free(conf->ca);
}
mbedtls_entropy_free(&conf->entropy);
mbedtls_ctr_drbg_free(&conf->ctr_drbg);
altcp_mbedtls_free_config(conf);
altcp_mbedtls_unref_entropy();
}