diff --git a/src/net/logging/log.c b/src/net/logging/log.c index b3f684f..358aef8 100755 --- a/src/net/logging/log.c +++ b/src/net/logging/log.c @@ -18,13 +18,14 @@ int shutdown_logger(const void* data) logger->app_logger = NULL; logger->name = NULL; free(logger); - return DELETE | BREAK; + return DELETE; } void shutdown_log(app_logger_info* appLogger) { canLog = false; iterate_list(appLogger->loggers, true, &shutdown_logger); + free(appLogger); } logger* create_logger(app_logger_info* appLogger, char* name)