Fix memory leak
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
d152f53eaa
commit
83366b3352
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue