From a1b8ae16d545642486413986006ea6f560e9213b 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: fix use-after-free compiler error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #198 Signed-off-by: Martin Matějek --- 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);