Memory leak plugged for log context

This commit is contained in:
Olafur Gudmundsson
2000-02-04 00:34:37 +00:00
parent 7d32c065c7
commit f4e90d4323
2 changed files with 4 additions and 0 deletions

View File

@@ -1202,6 +1202,8 @@ main(int argc, char *argv[]) {
isc_mem_free(mctx, file);
isc_mem_free(mctx, output);
if (log != NULL)
isc_log_destroy(&log);
/* isc_mem_stats(mctx, stdout);*/
isc_mem_destroy(&mctx);

View File

@@ -1202,6 +1202,8 @@ main(int argc, char *argv[]) {
isc_mem_free(mctx, file);
isc_mem_free(mctx, output);
if (log != NULL)
isc_log_destroy(&log);
/* isc_mem_stats(mctx, stdout);*/
isc_mem_destroy(&mctx);