datastorage: fix use-after-free compiler error

Closes: #198

Signed-off-by: Martin Matějek <martin.matejek@gmx.com>
This commit is contained in:
Martin Matějek 2022-10-23 22:05:48 +02:00 committed by Martin Matějek
parent 9885d77a19
commit a411762ee8
No known key found for this signature in database
GPG key ID: 99803725C2683501

View file

@ -1332,8 +1332,8 @@ void insert_macs_from_file() {
}
}
fclose(fp);
dawn_unregmem(fp);
fclose(fp);
if (line)
{
free(line);