i2c_smbus_linux: closedir() on error path
This commit is contained in:
parent
c69a8d15f2
commit
99cd322721
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ bool i2c_smbus_linux_detect()
|
|||
|
||||
if(ent == NULL)
|
||||
{
|
||||
closedir(dir);
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue