]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
{platform,super}-intel: Fix two resource leaks
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 7 Mar 2016 17:33:49 +0000 (12:33 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 16:35:34 +0000 (11:35 -0500)
commitb91350117398a0d88da738c9d625b6a5dbd4f1ea
treedcff9d98cd7c02064e3da5b1981e24f5ccf28f4e
parentefdfcc9e9503d03acf6b3adb47f34173f7112afe
{platform,super}-intel: Fix two resource leaks

The code did not free 'dir' allocated by opendir(). An additional
benefit is that this simplifies the for() loops.

Fixes: 60f0f54d ("IMSM: Add support for VMD")
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
platform-intel.c
super-intel.c