Remember to close directories when we are finished with them.
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index 8e4e60d..d026c30 100644 (file)
--- a/util.c
+++ b/util.c
@@ -982,6 +982,7 @@ int open_container(int fd)
                        return dfd;
                }
        }
+       closedir(dir);
        return -1;
 }