summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c
index c5b19a67a..72499dd0e 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);