From: fcambus Date: Thu, 22 Jun 2017 20:38:32 +0000 (+0000) Subject: Close file descriptor on an exit path. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d1a991f7a022bd0498e67f3955e0bf6fe99af6d4;p=openbsd Close file descriptor on an exit path. OK gsoares@ --- 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); }