diff --git a/main/logger.c b/main/logger.c index 8cad8e4e69..c753e965c0 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1519,7 +1519,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);