2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

DO NOT PULL ME UP TO THE RELEASE BRANCH.

This is a fix for the race condition in dig.  It seems to work well, except
there's a memory leak I can't quite track down.  Michael and I will look at
it on the plane ride tommorow, and commit a change via modem once we arrive
in PA.  We'll also be doing general code cleanup.
This commit is contained in:
Michael Sawyer
2000-06-29 05:21:12 +00:00
parent a04a6cbaca
commit db8b100cae
4 changed files with 64 additions and 44 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: dig.c,v 1.52 2000/06/28 18:20:41 mws Exp $ */
/* $Id: dig.c,v 1.53 2000/06/29 05:21:08 mws Exp $ */
#include <config.h>
#include <stdlib.h>
@@ -169,6 +169,7 @@ show_usage(void) {
void
dighost_shutdown(void) {
free_lists(0);
isc_app_shutdown();
}
@@ -1220,7 +1221,11 @@ main(int argc, char **argv) {
setup_system();
start_lookup();
isc_app_run();
free_lists(0);
if (isc_mem_debugging)
isc_mem_stats(mctx, stderr);
isc_app_finish();
if (mctx != NULL)
isc_mem_destroy(&mctx);
return (exitcode);
}