mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 07:35:03 -04:00
i2c_smbus_linux: closedir() on error path
This commit is contained in:
1 file changed
+1
@@ -96,6 +96,7 @@ bool i2c_smbus_linux_detect()
|
||||
|
||||
if(ent == NULL)
|
||||
{
|
||||
closedir(dir);
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user