diff options
author | 2017-06-22 20:38:32 +0000 | |
---|---|---|
committer | 2017-06-22 20:38:32 +0000 | |
commit | d1a991f7a022bd0498e67f3955e0bf6fe99af6d4 (patch) | |
tree | e42096bbdfbe779e3edaed1016ffda7e86711e6b | |
parent | Perl on 32 bit architectures does not support pack('Q'), replace (diff) | |
download | wireguard-openbsd-d1a991f7a022bd0498e67f3955e0bf6fe99af6d4.tar.xz wireguard-openbsd-d1a991f7a022bd0498e67f3955e0bf6fe99af6d4.zip |
Close file descriptor on an exit path.
OK gsoares@
-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); } |