Fix memory leak

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Jes Sorensen 2011-11-01 14:50:44 +11:00 committed by NeilBrown
parent d152f53eaa
commit 83366b3352
1 changed files with 1 additions and 0 deletions

View File

@ -1375,6 +1375,7 @@ int Assemble(struct supertype *st, char *mddev,
sysfs_set_num(sra, NULL,
"stripe_cache_size",
(4 * content->array.chunk_size / 4096) + 1);
sysfs_free(sra);
}
}
if (okcnt < (unsigned)content->array.raid_disks) {