From: Kern Sibbald Date: Wed, 21 Jul 2010 15:18:17 +0000 (+0200) Subject: Garbage collect memory pool at end of job and before sm_dump X-Git-Tag: Release-5.0.3~70 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef88d0c0ad13ee3eaeac4761eca5b7e35a88daa6;p=bacula%2Fbacula Garbage collect memory pool at end of job and before sm_dump --- 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;