mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Allow NULL for free_public_key.
This commit is contained in:
parent
850f09b2e3
commit
6cf8890dc1
8 changed files with 36 additions and 34 deletions
13
g10/revoke.c
13
g10/revoke.c
|
@ -262,11 +262,8 @@ gen_desig_revoke( const char *uname, strlist_t locusr )
|
|||
{
|
||||
SK_LIST list;
|
||||
|
||||
if (pk2)
|
||||
{
|
||||
free_public_key (pk2);
|
||||
pk2 = NULL;
|
||||
}
|
||||
free_public_key (pk2);
|
||||
pk2 = NULL;
|
||||
|
||||
if(sk_list)
|
||||
{
|
||||
|
@ -417,10 +414,8 @@ gen_desig_revoke( const char *uname, strlist_t locusr )
|
|||
log_error(_("no revocation keys found for \"%s\"\n"),uname);
|
||||
|
||||
leave:
|
||||
if( pk )
|
||||
free_public_key( pk );
|
||||
if (pk2)
|
||||
free_public_key (pk2);
|
||||
free_public_key (pk);
|
||||
free_public_key (pk2);
|
||||
if( sig )
|
||||
free_seckey_enc( sig );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue