From a24a9f7b0b0e3cbf8dfc22a3a9c194b2e11ea73a Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Wed, 12 Sep 2007 21:02:59 +0000 Subject: [PATCH] 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 --- bacula/src/stored/stored.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5