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 af61fc3..29a9126 100644 --- a/Grow.c +++ b/Grow.c @@ -1535,10 +1535,12 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, frozen = freeze(st); if (frozen < -1) { /* freeze() already spewed the reason */ + sysfs_free(sra); return 1; } else if (frozen < 0) { fprintf(stderr, Name ": %s is performing resync/recovery and cannot" " be reshaped\n", devname); + sysfs_free(sra); return 1; } @@ -1835,6 +1837,7 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, frozen = 0; } release: + sysfs_free(sra); if (frozen > 0) unfreeze(st); return rv; -- 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