mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
Fix fd leak
MFC after: 3 days
This commit is contained in:
parent
f9af8a7b9c
commit
b00f982843
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215519
@ -203,6 +203,7 @@ main(int argc, char **argv)
|
||||
write(fd, &newline, sizeof(newline)) < 0)
|
||||
warn("%s: write", ROOTKEY);
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
|
||||
if (key_setsecret(secret) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user