]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix segfault in debug level > 50 with btape.
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 14 Oct 2008 14:00:06 +0000 (14:00 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 14 Oct 2008 14:00:06 +0000 (14:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7785 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/btape.c
bacula/technotes-2.5

index e77dc0b0032249ab64d91702fa7a7d1871079d76..4aa6a07da91c21cb074e29cc29474fbed74ed844 100644 (file)
@@ -344,12 +344,12 @@ static void terminate_btape(int stat)
    free_jcr(jcr);
    jcr = NULL;
 
    free_jcr(jcr);
    jcr = NULL;
 
+   free_volume_list();
+
    if (dev) {
       dev->term();
    }
 
    if (dev) {
       dev->term();
    }
 
-   free_volume_list();
-
    if (debug_level > 10)
       print_memory_pool_stats();
 
    if (debug_level > 10)
       print_memory_pool_stats();
 
index c775b29989a1158cd162e6615131126377cb7933..3afdf29ddf0d8022d64efed1e028a4977c90540b 100644 (file)
@@ -18,6 +18,7 @@ remove reader/writer in FOPTS????
 
 General:
 14Oct08
 
 General:
 14Oct08
+ebl  Fix segfault in debug level > 50 with btape.
 ebl  Remove warning message in btape when command is empty.
 kes  Fix Win32 build to pull in new BACULA define.
 13Oct08
 ebl  Remove warning message in btape when command is empty.
 kes  Fix Win32 build to pull in new BACULA define.
 13Oct08