]> git.sur5r.net Git - bacula/bacula/commitdiff
Garbage collect memory pool at end of job and before sm_dump
authorKern Sibbald <kern@sibbald.com>
Wed, 21 Jul 2010 15:18:17 +0000 (17:18 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:58 +0000 (16:53 +0200)
bacula/src/filed/job.c

index 61d1ca10778c3e9ec49d364c41870b2b47da2a89..6e86ba83929435950d208e59fa581d006c7fa2e4 100644 (file)
@@ -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;