summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:34 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:34 +1000
commit355726fa014fb9d656e6af92f0305e55af58de09 (patch)
tree69e65aea75f361eeb656b8b480897392b467cd0d /util.c
parent8c21018330e6adc15f347bd7c9e924866b8ca608 (diff)
downloadmdadm-355726fa014fb9d656e6af92f0305e55af58de09.tar.gz
mdadm-355726fa014fb9d656e6af92f0305e55af58de09.tar.xz
mdadm-355726fa014fb9d656e6af92f0305e55af58de09.zip
Remember to close directories when we are finished with them.
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 8e4e60d..d026c30 100644
--- a/util.c
+++ b/util.c
@@ -982,6 +982,7 @@ int open_container(int fd)
return dfd;
}
}
+ closedir(dir);
return -1;
}