[asterisk-commits] kmoore: trunk r382575 - in /trunk: ./ main/logger.c

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


Author: kmoore
Date: Thu Mar  7 09:09:01 2013
New Revision: 382575

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

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

Merged revisions 382574 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/main/logger.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/logger.c?view=diff&rev=382575&r1=382574&r2=382575
==============================================================================
--- trunk/main/logger.c (original)
+++ trunk/main/logger.c Thu Mar  7 09:09:01 2013
@@ -1537,7 +1537,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