From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- Grow.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Grow.c b/Grow.c index 93a1fba..af61fc3 100644 --- a/Grow.c +++ b/Grow.c @@ -3578,6 +3578,7 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt if (verbose) fprintf(stderr, Name ": Error restoring backup from %s\n", devname); + free(offsets); return 1; } @@ -3595,9 +3596,11 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt if (verbose) fprintf(stderr, Name ": Error restoring second backup from %s\n", devname); + free(offsets); return 1; } + free(offsets); /* Ok, so the data is restored. Let's update those superblocks. */ -- 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