summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/condition.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/condition.c b/src/condition.c
index f18c45421a..2b51a16f17 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -187,6 +187,8 @@ static bool test_capability(const char *parameter) {
}
}
+ fclose(f);
+
return !!(capabilities & (1ULL << value));
}