From dbb9d006b6a38423e4e37ba70ceb004c585736b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mat=C4=9Bjek?= Date: Sun, 23 Oct 2022 22:05:48 +0200 Subject: [PATCH] datastorage.c: fix use-after-free compiler error Closes: #198 --- src/storage/datastorage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index 7e6da46..1e2a5ac 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -1332,8 +1332,8 @@ void insert_macs_from_file() { } } - fclose(fp); dawn_unregmem(fp); + fclose(fp); if (line) { free(line);