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
|
@ -120,11 +120,16 @@ release_public_key_parts (PKT_public_key *pk)
|
|||
}
|
||||
|
||||
|
||||
/* Free an allocated public key structure including all parts.
|
||||
Passing NULL is allowed. */
|
||||
void
|
||||
free_public_key (PKT_public_key *pk)
|
||||
{
|
||||
release_public_key_parts (pk);
|
||||
xfree(pk);
|
||||
if (pk)
|
||||
{
|
||||
release_public_key_parts (pk);
|
||||
xfree(pk);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue