diff --git a/doc/Changelog b/doc/Changelog index def2dbfca..3215249c1 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 17 June 2019: Wouter - Master contains version 1.9.3 in development. + - Fix #39: In libunbound, leftover logfile is close()d unpredictably. 12 June 2019: Wouter - Fix another spoolbuf storage code point, in prefetch. diff --git a/libunbound/libunbound.c b/libunbound/libunbound.c index 5f5a8a102..9dd7d6dbe 100644 --- a/libunbound/libunbound.c +++ b/libunbound/libunbound.c @@ -328,6 +328,8 @@ ub_ctx_delete(struct ub_ctx* ctx) ub_randfree(ctx->seed_rnd); alloc_clear(&ctx->superalloc); traverse_postorder(&ctx->queries, delq, NULL); + if(ctx->logfile_override) + log_file(NULL); free(ctx); #ifdef USE_WINSOCK WSACleanup();