i2c_smbus_linux: closedir() on error path

This commit is contained in:
nick black 2022-09-03 03:08:33 -04:00
parent c69a8d15f2
commit 99cd322721
No known key found for this signature in database
GPG key ID: 5F43400C21CBFACC

View file

@ -96,6 +96,7 @@ bool i2c_smbus_linux_detect()
if(ent == NULL)
{
closedir(dir);
return(false);
}