gpg: Fix double free.

* g10/getkey.c (get_pubkeys): Fix double free.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
Fixes-commit: 7195b943

Note: this error is not a security problem, because this code path is
currently never executed.
This commit is contained in:
Neal H. Walfield 2016-01-04 12:46:11 +01:00
parent bf694cbc68
commit 575c15a090
1 changed files with 1 additions and 9 deletions

View File

@ -629,15 +629,7 @@ get_pubkeys (ctrl_t ctrl,
out:
if (err)
{
while ((r = results))
{
results = results->next;
pubkey_free (r);
release_kbnode (r->keyblock);
xfree (r);
}
}
pubkeys_free (results);
else
*r_keys = results;