From 92ccb82f2a5ac54730ae92d2c01c935ffa3943f7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 6 Nov 2011 16:00:01 +0100 Subject: [PATCH] Free jcr in btape before other pointers --- bacula/src/stored/btape.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index d70da195c2..2b19e62e78 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -318,6 +318,9 @@ static void terminate_btape(int stat) { Dsm_check(200); + free_jcr(jcr); + jcr = NULL; + if (configfile) { free(configfile); } @@ -339,8 +342,6 @@ static void terminate_btape(int stat) free_bsr(bsr); } - free_jcr(jcr); - jcr = NULL; free_volume_lists(); -- 2.39.5