Close file descriptor on an exit path.
authorfcambus <fcambus@openbsd.org>
Thu, 22 Jun 2017 20:38:32 +0000 (20:38 +0000)
committerfcambus <fcambus@openbsd.org>
Thu, 22 Jun 2017 20:38:32 +0000 (20:38 +0000)
OK gsoares@

usr.sbin/wsfontload/wsfontload.c

index ecf37d7..7d73dc0 100644 (file)
@@ -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);
        }