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-5.2.2~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92ccb82f2a5ac54730ae92d2c01c935ffa3943f7;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();