diff --git a/main/logger.c b/main/logger.c index 0c8cdfc51a..5027bcbd40 100644 --- a/main/logger.c +++ b/main/logger.c @@ -1666,7 +1666,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);