summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-08-01 04:52:57 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-08-01 04:52:57 +0000
commitdd2786fc0069ca66f6378fd119db93976e1e0a0a (patch)
tree35f991fd7eddaaa773ecac4eece9db1ed53bef37
parent2c77a1e2ec2043ac520fce32bb6a185577687203 (diff)
Fix fd leak that broke disk_close().
-rw-r--r--sys/arch/octeon/stand/rdboot/cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/octeon/stand/rdboot/cmd.c b/sys/arch/octeon/stand/rdboot/cmd.c
index f8f128a5ef4..c9790bb8920 100644
--- a/sys/arch/octeon/stand/rdboot/cmd.c
+++ b/sys/arch/octeon/stand/rdboot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.2 2019/07/28 12:47:56 visa Exp $ */
+/* $OpenBSD: cmd.c,v 1.3 2019/08/01 04:52:56 visa Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -405,6 +405,7 @@ Xls(void)
closedir(dir);
fchdir(oldcwd);
+ close(oldcwd);
}
out: