mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:02:04 -04:00
Take ownership of pointer before freeing
This commit is contained in:
parent
4c4ecbc83c
commit
9e2288208d
1 changed files with 3 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Reference in a new issue