mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Take ownership of pointer before freeing
This commit is contained in:
@@ -844,10 +844,12 @@ isc_tls_create(isc_tlsctx_t *ctx) {
|
||||
|
||||
void
|
||||
isc_tls_free(isc_tls_t **tlsp) {
|
||||
isc_tls_t *tls = NULL;
|
||||
REQUIRE(tlsp != NULL && *tlsp != NULL);
|
||||
|
||||
SSL_free(*tlsp);
|
||||
tls = *tlsp;
|
||||
*tlsp = NULL;
|
||||
SSL_free(tls);
|
||||
}
|
||||
|
||||
const char *
|
||||
|
Reference in New Issue
Block a user