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.2.1~1203 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f28ce15893372be27bcc9faf6bf5078f2ba44410;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 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;