diff options
author | Pankaj Sharma <pankaj.cscience@gmail.com> | 2012-12-24 09:13:00 +0000 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-01-09 13:27:45 +0100 |
commit | e8aa2fa8f3a085ca514e7b305ff91e2c77e5e6f4 (patch) | |
tree | c2c7e2beb020176ee1c5399dd83ff83bd57e1cda /p11-kit | |
parent | 488a466935d7995c803880ed258792f8a99095c0 (diff) |
Fix file descriptor leak in p11_kit_pin_file_callback()
* Close the file descriptor used to read the the pin file
https://bugs.freedesktop.org/show_bug.cgi?id=58706
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/pin.c | 2 |
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; |