From f28ce15893372be27bcc9faf6bf5078f2ba44410 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 61d1ca1077..6e86ba8392 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -402,11 +402,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