From 406c65a5cc5446ba62692ee78a3894678de782d0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 15 Oct 2015 23:51:08 +0200 Subject: [PATCH] Move plugin_free() in free_jcr() --- bacula/src/filed/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5