From 006a2e1748114d85ee5b19c6f7f84be28a6606ca Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 14 Oct 2008 14:00:06 +0000 Subject: [PATCH] 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 --- bacula/src/stored/btape.c | 4 ++-- bacula/technotes-2.5 | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5