summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>2005-01-13 19:19:45 +0000
committerIan Darwin <ian@cvs.openbsd.org>2005-01-13 19:19:45 +0000
commitd01193e180ba64df5b3a00399cb2999b6e6c3c77 (patch)
tree23edf8d25891136d85efe91c63185b207968d6ae /usr.bin
parentf5b97e9b5d35932b98d2a5571688fdf842679267 (diff)
Close what you open: obvious fix, ok jared@, more to follow
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/aucat/aucat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 98f8ce6788d..a923c306fa2 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.9 2003/10/20 21:10:19 jmc Exp $ */
+/* $OpenBSD: aucat.c,v 1.10 2005/01/13 19:19:44 ian Exp $ */
/*
* Copyright (c) 1997 Kenneth Stailey. All rights reserved.
*
@@ -109,6 +109,7 @@ main(int argc, char *argv[])
}
if (playfile(fd, dev) < 0)
exit(1);
+ (void) close(fd);
argc--;
argv++;
}