mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
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:
parent
bf694cbc68
commit
575c15a090
10
g10/getkey.c
10
g10/getkey.c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user