[Pkg-gnupg-commit] [gnupg2] 75/159: gpg: Fix double free.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Jan 27 13:23:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 575c15a090913d86cf8d75b2bc4471e371f234b9
Author: Neal H. Walfield <neal at g10code.com>
Date: Mon Jan 4 12:46:11 2016 +0100
gpg: Fix double free.
* g10/getkey.c (get_pubkeys): Fix double free.
--
Signed-off-by: Neal H. Walfield <neal at g10code.com>
Fixes-commit: 7195b943
Note: this error is not a security problem, because this code path is
currently never executed.
---
g10/getkey.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/g10/getkey.c b/g10/getkey.c
index 52e3d23..86a3c80 100644
--- a/g10/getkey.c
+++ b/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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list