]> 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)
committerKern Sibbald <kern@sibbald.com>
Thu, 22 Jul 2010 13:52:39 +0000 (15:52 +0200)
bacula/src/filed/job.c

index f9450eee96bbbfd5bf0d56947c78d1e634cb3f12..73f96c000d94f98c48a4d79e7e366cebcbff4a27 100644 (file)
@@ -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;