]> git.sur5r.net Git - bacula/bacula/commitdiff
Move plugin_free() in free_jcr()
authorEric Bollengier <eric@baculasystems.com>
Thu, 15 Oct 2015 21:51:08 +0000 (23:51 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:24:48 +0000 (09:24 -0800)
bacula/src/filed/job.c

index 1da24a655b12fd6fdec1d11c12d7e79d99faf10c..05eb87b99466d8a2ea52d785b7869e9baaf77ba4 100644 (file)
@@ -353,7 +353,6 @@ bail_out:
    /* Inform Director that we are done */
    dir->signal(BNET_TERMINATE);
 
-   free_plugins(jcr);                 /* release instantiated plugins */
    free_and_null_pool_memory(jcr->job_metadata);
 
    /* Clean up fileset */
@@ -2443,6 +2442,7 @@ static void filed_free_jcr(JCR *jcr)
    if (jcr->last_fname) {
       free_pool_memory(jcr->last_fname);
    }
+   free_plugins(jcr);                 /* release instantiated plugins */
    free_runscripts(jcr->RunScripts);
    delete jcr->RunScripts;
    free_path_list(jcr);