summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 12e67b2..0aff1be 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1169,6 +1169,7 @@ int Assemble(struct supertype *st, char *mddev,
}
if (auto_assem)
ioctl(mdfd, STOP_ARRAY, NULL);
+ close(mdfd);
return 1;
} else {
/* The "chosen_drive" is a good choice, and if necessary, the superblock has