From: Eric Bollengier Date: Tue, 14 Oct 2008 14:00:06 +0000 (+0000) Subject: ebl Fix segfault in debug level > 50 with btape. X-Git-Tag: Release-7.0.0~3962 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0343cbb651abe3997feeef0ecf7a40f908a438c5;p=bacula%2Fbacula ebl Fix segfault in debug level > 50 with btape. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7785 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index e77dc0b003..4aa6a07da9 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -344,12 +344,12 @@ static void terminate_btape(int stat) free_jcr(jcr); jcr = NULL; + free_volume_list(); + if (dev) { dev->term(); } - free_volume_list(); - if (debug_level > 10) print_memory_pool_stats(); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index c775b29989..3afdf29ddf 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -18,6 +18,7 @@ remove reader/writer in FOPTS???? 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