From: Eric Bollengier Date: Thu, 15 Oct 2015 21:51:08 +0000 (+0200) Subject: Move plugin_free() in free_jcr() X-Git-Tag: Release-7.4.0~194 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=406c65a5cc5446ba62692ee78a3894678de782d0;p=bacula%2Fbacula Move plugin_free() in free_jcr() --- diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 1da24a655b..05eb87b994 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -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);