1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

condition: Fix file descriptor leak in test_capability()

Detected by cppcheck.
This commit is contained in:
Thomas Jarosch 2011-10-26 09:38:39 +02:00 committed by Lennart Poettering
parent 7c2ec00930
commit 7670e5a2aa

View File

@ -187,6 +187,8 @@ static bool test_capability(const char *parameter) {
}
}
fclose(f);
return !!(capabilities & (1ULL << value));
}