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

View File

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