From: Kern Sibbald Date: Sun, 6 Nov 2011 15:00:01 +0000 (+0100) Subject: Free jcr in btape before other pointers X-Git-Tag: Release-7.0.0~474 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7bac5f10c6f1c92a8d1e0b25c2bac9589a84302d;p=bacula%2Fbacula Free jcr in btape before other pointers --- 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();