diff options
author | Werner Koch <wk@gnupg.org> | 2004-12-07 19:07:30 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-12-07 19:07:30 +0100 |
commit | 98f0a18e77c0d2b13ebfef5083ab95d571df1254 (patch) | |
tree | ddfe82f66ae1b71ff47031cc22373c8f73e6e911 /kbx | |
parent | * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname. (diff) | |
download | gnupg2-98f0a18e77c0d2b13ebfef5083ab95d571df1254.tar.xz gnupg2-98f0a18e77c0d2b13ebfef5083ab95d571df1254.zip |
(keybox_release): Close the file pointer.
Diffstat (limited to 'kbx')
-rw-r--r-- | kbx/ChangeLog | 4 | ||||
-rw-r--r-- | kbx/keybox-init.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/kbx/ChangeLog b/kbx/ChangeLog index ea5b9dbd1..d75700216 100644 --- a/kbx/ChangeLog +++ b/kbx/ChangeLog @@ -1,3 +1,7 @@ +2004-12-07 Werner Koch <wk@g10code.com> + + * keybox-init.c (keybox_release): Close the file pointer. + 2004-11-26 Werner Koch <wk@g10code.com> * Makefile.am (kbxutil_LDADD): Add ../common/libcommon.a diff --git a/kbx/keybox-init.c b/kbx/keybox-init.c index e11c4f09c..46a29978a 100644 --- a/kbx/keybox-init.c +++ b/kbx/keybox-init.c @@ -102,6 +102,11 @@ keybox_release (KEYBOX_HANDLE hd) if (!hd) return; _keybox_release_blob (hd->found.blob); + if (hd->fp) + { + fclose (hd->fp); + hd->fp = NULL; + } xfree (hd->word_match.name); xfree (hd->word_match.pattern); xfree (hd); |