super-intel.c: Fix resource leak from opendir()

Use closedir() on dirp from opendir() to avoid resource leaking.

Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Jes Sorensen 2012-05-04 13:41:22 +02:00 committed by NeilBrown
parent 36614e9546
commit 562aa10219
1 changed files with 1 additions and 0 deletions

View File

@ -5686,6 +5686,7 @@ get_devices(const char *hba_path)
free(dv);
}
}
closedir(dir);
return devlist;
}