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:51:14 +11:00 committed by NeilBrown
parent 83366b3352
commit 5454b6f324
1 changed files with 1 additions and 0 deletions

View File

@ -587,6 +587,7 @@ This is pretty boring
out:
close(fd);
free(subarray);
sysfs_free(sra);
return rv;
}