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:
parent
36614e9546
commit
562aa10219
|
@ -5686,6 +5686,7 @@ get_devices(const char *hba_path)
|
|||
free(dv);
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
return devlist;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue