mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
(keybox_release): Close the file pointer.
This commit is contained in:
parent
b50a587d8d
commit
98f0a18e77
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user