Skip to content

Commit

Permalink
- Fix #39: In libunbound, leftover logfile is close()d unpredictably.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jun 17, 2019
1 parent 3499d3c commit 1ec96d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions libunbound/libunbound.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ec96d8

Please sign in to comment.