[Freeswitch-svn] [commit] r9527 - freeswitch/trunk/src/mod/loggers/mod_console

Freeswitch SVN mikej at freeswitch.org
Thu Sep 11 15:56:58 EDT 2008


Author: mikej
Date: Thu Sep 11 15:56:57 2008
New Revision: 9527

Modified:
   freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c

Log:
fix shutdown crash

Modified: freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c
==============================================================================
--- freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	(original)
+++ freeswitch/trunk/src/mod/loggers/mod_console/mod_console.c	Thu Sep 11 15:56:57 2008
@@ -342,7 +342,9 @@
 {
 
 	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;



More information about the Freeswitch-svn mailing list