From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- Incremental.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Incremental.c b/Incremental.c index 7e345c5..cc50a79 100644 --- a/Incremental.c +++ b/Incremental.c @@ -1199,6 +1199,8 @@ static int partition_try_spare(char *devname, int *dfdp, struct dev_policy *pol, close(fd); } + closedir(dir); + if (!chosen) return 1; -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html