diff options
Diffstat (limited to '')
-rw-r--r-- | g10/getkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index eed62e916..886d53cc9 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1078,6 +1078,8 @@ enum_secret_keys( void **context, PKT_secret_key *sk, int with_subkeys ) } if( !sk ) { /* free the context */ + if( c->iobuf ) + iobuf_close(c->iobuf); m_free( c ); *context = NULL; return 0; |