From: Jes Sorensen Date: Tue, 1 Nov 2011 03:50:44 +0000 (+1100) Subject: Fix memory leak X-Git-Tag: mdadm-3.2.3~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83366b33529567fb13a26773196a03a35b872c52;p=thirdparty%2Fmdadm.git Fix memory leak Signed-off-by: Jes Sorensen Signed-off-by: NeilBrown --- diff --git a/Assemble.c b/Assemble.c index ac1115de..4ded58ce 100644 --- a/Assemble.c +++ b/Assemble.c @@ -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) {