From: Dan Langille Date: Wed, 12 Sep 2007 21:02:59 +0000 (+0000) Subject: Move term_reservations_lock lower down, because it blows X-Git-Tag: Release-3.0.0~2536 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88ecace32f9070b039e62ff131a27a884c5c17b5;p=bacula%2Fbacula Move term_reservations_lock lower down, because it blows away the volume_list lock which is used in free_volume_list(). Detected by: Dan Langille - who noticed bacula-sd.core files Fixed by: Eric Bollengier - who read the backtrace... git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5537 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/stored.c b/bacula/src/stored/stored.c index 996f4fc358..3a5eff611f 100644 --- a/bacula/src/stored/stored.c +++ b/bacula/src/stored/stored.c @@ -600,10 +600,10 @@ void terminate_stored(int sig) if (debug_level > 10) { print_memory_pool_stats(); } - term_reservations_lock(); term_msg(); cleanup_crypto(); free_volume_list(); + term_reservations_lock(); close_memory_pool(); sm_dump(false); /* dump orphaned buffers */