From d1a991f7a022bd0498e67f3955e0bf6fe99af6d4 Mon Sep 17 00:00:00 2001 From: fcambus Date: Thu, 22 Jun 2017 20:38:32 +0000 Subject: [PATCH] Close file descriptor on an exit path. OK gsoares@ --- usr.sbin/wsfontload/wsfontload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.20.1