Monitor: Use sysfs_free() to free object returned by sysfs_read()

We should always use sysfs_free() to release sysfs_* allocated
objects.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Jes Sorensen 2016-06-10 14:54:53 -04:00
parent 2e466cce45
commit 26c62b8e76
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ static int check_array(struct state *st, struct mdstat_ent *mdstat,
} else
alert("RebuildFinished", dev, NULL, ainfo);
if (sra)
free(sra);
sysfs_free(sra);
}
st->percent = mse->percent;