mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-16 03:27:49 +07:00
condition: Fix file descriptor leak in test_capability()
Detected by cppcheck.
This commit is contained in:
parent
7c2ec00930
commit
7670e5a2aa
@ -187,6 +187,8 @@ static bool test_capability(const char *parameter) {
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f);
|
||||
|
||||
return !!(capabilities & (1ULL << value));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user