diff options
author | kevlo <kevlo@FreeBSD.org> | 2010-11-19 10:18:58 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2010-11-19 10:18:58 +0000 |
commit | 7be275d6a786ef414ab769fb1b61fa9a4b041f4d (patch) | |
tree | 0ba31ef44bab59f7b5a4a440c04efcc98483244d /usr.bin/chkey | |
parent | f416f9f4cdeb6ac435770715bcb8a72f93097e36 (diff) | |
download | FreeBSD-src-7be275d6a786ef414ab769fb1b61fa9a4b041f4d.zip FreeBSD-src-7be275d6a786ef414ab769fb1b61fa9a4b041f4d.tar.gz |
Fix fd leak
MFC after: 3 days
Diffstat (limited to 'usr.bin/chkey')
-rw-r--r-- | usr.bin/chkey/chkey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/chkey/chkey.c b/usr.bin/chkey/chkey.c index db0b743..3098271 100644 --- a/usr.bin/chkey/chkey.c +++ b/usr.bin/chkey/chkey.c @@ -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) |