[asterisk-commits] kmoore: branch 11 r382574 - /branches/11/main/logger.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 7 09:08:30 CST 2013


Author: kmoore
Date: Thu Mar  7 09:08:26 2013
New Revision: 382574

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382574
Log:
Ensure that logmsgs are freed properly

Messages sent while the logger thread is shutting down will now have
their associated callid freed properly.

Modified:
    branches/11/main/logger.c

Modified: branches/11/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/logger.c?view=diff&rev=382574&r1=382573&r2=382574
==============================================================================
--- branches/11/main/logger.c (original)
+++ branches/11/main/logger.c Thu Mar  7 09:08:26 2013
@@ -1519,7 +1519,7 @@
 		AST_LIST_LOCK(&logmsgs);
 		if (close_logger_thread) {
 			/* Logger is either closing or closed.  We cannot log this message. */
-			ast_free(logmsg);
+			logmsg_free(logmsg);
 		} else {
 			AST_LIST_INSERT_TAIL(&logmsgs, logmsg, list);
 			ast_cond_signal(&logcond);




More information about the asterisk-commits mailing list