diff options
author | 2016-08-31 09:48:26 +0000 | |
---|---|---|
committer | 2016-08-31 09:48:26 +0000 | |
commit | 7a129727c616ea59974328a2ebd515b224673caf (patch) | |
tree | e94c7d7abbc000c166610f4577352805713ff889 | |
parent | When iterating over the list of input files close them when (diff) | |
download | wireguard-openbsd-7a129727c616ea59974328a2ebd515b224673caf.tar.xz wireguard-openbsd-7a129727c616ea59974328a2ebd515b224673caf.zip |
close an opened fd before returning from main
ok guenther@
-rw-r--r-- | usr.bin/audioctl/audioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/audioctl/audioctl.c b/usr.bin/audioctl/audioctl.c index 9330404498d..22f0078a69e 100644 --- a/usr.bin/audioctl/audioctl.c +++ b/usr.bin/audioctl/audioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audioctl.c,v 1.33 2016/06/21 22:35:39 jmc Exp $ */ +/* $OpenBSD: audioctl.c,v 1.34 2016/08/31 09:48:26 jsg Exp $ */ /* * Copyright (c) 2016 Alexandre Ratchov <alex@caoua.org> * @@ -277,5 +277,6 @@ main(int argc, char **argv) print_val(f, f->waddr); printf("\n"); } + close(fd); return 0; } |