Skip to content

Commit

Permalink
datastorage: fix use-after-free compiler error
Browse files Browse the repository at this point in the history
Closes: #198

Signed-off-by: Martin Matějek <[email protected]>
  • Loading branch information
mmtj committed Oct 23, 2022
1 parent 9e8060e commit a1b8ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/datastorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,8 +1332,8 @@ void insert_macs_from_file() {
}
}

fclose(fp);
dawn_unregmem(fp);
fclose(fp);
if (line)
{
free(line);
Expand Down

0 comments on commit a1b8ae1

Please sign in to comment.