From ef88d0c0ad13ee3eaeac4761eca5b7e35a88daa6 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 21 Jul 2010 17:18:17 +0200 Subject: [PATCH] Garbage collect memory pool at end of job and before sm_dump --- bacula/src/filed/job.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index f9450eee96..73f96c000d 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -392,11 +392,13 @@ void *handle_client_request(void *dirp) free_jcr(jcr); /* destroy JCR record */ Dmsg0(100, "Done with free_jcr\n"); Dsm_check(1); + garbage_collect_memory_pool(); return NULL; } static int sm_dump_cmd(JCR *jcr) { + garbage_collect_memory_pool(); sm_dump(false, true); jcr->dir_bsock->fsend("2000 sm_dump OK\n"); return 1; -- 2.39.5