From 23af87b4bd61b55df7549623e0292a9d48fbd4bf Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 11 Sep 2008 19:56:57 +0000 Subject: [PATCH] fix shutdown crash git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9527 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/loggers/mod_console/mod_console.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index f1a6346d74..4ac18d7448 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -342,7 +342,9 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_console_shutdown) { switch_log_unbind_logger(switch_console_logger); - switch_core_hash_destroy(&log_hash); + if (log_hash) { + switch_core_hash_destroy(&log_hash); + } RUNNING = 0; return SWITCH_STATUS_UNLOAD;