summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p11-kit/pin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/p11-kit/pin.c b/p11-kit/pin.c
index 183b5f8..260d94e 100644
--- a/p11-kit/pin.c
+++ b/p11-kit/pin.c
@@ -500,6 +500,8 @@ p11_kit_pin_file_callback (const char *pin_source,
}
}
+ close (fd);
+
if (error != 0) {
free (buffer);
errno = error;