diff --git a/src/logger/lib/utils.c b/src/logger/lib/utils.c index a088d02..a7bbb18 100644 --- a/src/logger/lib/utils.c +++ b/src/logger/lib/utils.c @@ -31,7 +31,7 @@ along with this program. If not, see . void why2_deallocate_logger(why2_log_file logger) { - why2_deallocate(&logger.file); + close(logger.file); why2_deallocate(logger.filename); logger.filename = NULL;