diff --git a/main/logger.c b/main/logger.c index 0e0d2a0b33..017edca09a 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1661,7 +1661,7 @@ void ast_logger_unregister_level(const char *name) global_logmask &= ~(1 << x); - free(levels[x]); + ast_free(levels[x]); levels[x] = NULL; AST_RWLIST_UNLOCK(&logchannels);