Commit 89ff72be authored by Mark Andrews's avatar Mark Andrews
Browse files

clear *logp

parent ea8e149f
...@@ -209,12 +209,14 @@ cleanup_logging(isc_log_t **logp) { ...@@ -209,12 +209,14 @@ cleanup_logging(isc_log_t **logp) {
REQUIRE(logp != NULL); REQUIRE(logp != NULL);
log = *logp; log = *logp;
*logp = NULL;
if (log == NULL) if (log == NULL)
return; return;
isc_log_destroy(&log); isc_log_destroy(&log);
isc_log_setcontext(NULL); isc_log_setcontext(NULL);
dns_log_setcontext(NULL); dns_log_setcontext(NULL);
logp = NULL;
} }
void void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment