diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-06-22 20:38:33 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-06-22 20:38:33 +0000 |
commit | 5314bca500e770208a697c5dd587bbfdad7b419e (patch) | |
tree | 2898dce1cab9dd93cb3ee6da386843e9c9712282 /usr.sbin/wsfontload | |
parent | d1fb6dfd93c4817e11086062ad021cca3da28ddf (diff) |
Close file descriptor on an exit path.
OK gsoares@
Diffstat (limited to 'usr.sbin/wsfontload')
-rw-r--r-- | usr.sbin/wsfontload/wsfontload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/wsfontload/wsfontload.c b/usr.sbin/wsfontload/wsfontload.c index ecf37d7a2fc..7d73dc0c562 100644 --- a/usr.sbin/wsfontload/wsfontload.c +++ b/usr.sbin/wsfontload/wsfontload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsfontload.c,v 1.18 2017/06/17 19:27:54 fcambus Exp $ */ +/* $OpenBSD: wsfontload.c,v 1.19 2017/06/22 20:38:32 fcambus Exp $ */ /* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */ /* @@ -166,6 +166,7 @@ main(int argc, char *argv[]) i++; } while(res == 0); + close(wsfd); return (0); } |