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-7.0.0~1668 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0943799ca27ac8f13c9e58e1a7bf5921d936a0c;hp=88f2c8c9032e01504256a160a8f55045b2b1d2e2;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;