Fix fd leak
MFC after: 3 days
This commit is contained in:
parent
f416f9f4cd
commit
7be275d6a7
@ -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