From: Kinsey Moore Date: Thu, 7 Mar 2013 15:09:01 +0000 (+0000) Subject: Ensure that logmsgs are freed properly X-Git-Tag: 13.0.0-beta1~2038 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b5e3a62a4eed731ab502daf8f6a5f1d6984e92;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382575 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/logger.c b/main/logger.c index c5b19a67a1..72499dd0e2 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1537,7 +1537,7 @@ static void __attribute__((format(printf, 6, 0))) ast_log_full(int level, const 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);