Memory leak plugged for log context
This commit is contained in:
@@ -1202,6 +1202,8 @@ main(int argc, char *argv[]) {
|
|||||||
isc_mem_free(mctx, file);
|
isc_mem_free(mctx, file);
|
||||||
isc_mem_free(mctx, output);
|
isc_mem_free(mctx, output);
|
||||||
|
|
||||||
|
if (log != NULL)
|
||||||
|
isc_log_destroy(&log);
|
||||||
/* isc_mem_stats(mctx, stdout);*/
|
/* isc_mem_stats(mctx, stdout);*/
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|
||||||
|
|||||||
@@ -1202,6 +1202,8 @@ main(int argc, char *argv[]) {
|
|||||||
isc_mem_free(mctx, file);
|
isc_mem_free(mctx, file);
|
||||||
isc_mem_free(mctx, output);
|
isc_mem_free(mctx, output);
|
||||||
|
|
||||||
|
if (log != NULL)
|
||||||
|
isc_log_destroy(&log);
|
||||||
/* isc_mem_stats(mctx, stdout);*/
|
/* isc_mem_stats(mctx, stdout);*/
|
||||||
isc_mem_destroy(&mctx);
|
isc_mem_destroy(&mctx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user