diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2019-08-01 04:52:57 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2019-08-01 04:52:57 +0000 |
commit | dd2786fc0069ca66f6378fd119db93976e1e0a0a (patch) | |
tree | 35f991fd7eddaaa773ecac4eece9db1ed53bef37 | |
parent | 2c77a1e2ec2043ac520fce32bb6a185577687203 (diff) |
Fix fd leak that broke disk_close().
-rw-r--r-- | sys/arch/octeon/stand/rdboot/cmd.c | 3 |
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: |