Home GnuPG
Diffusion GnuPG d20107f6da09

g10: Fix memory leak.
d20107f6da09Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Fix memory leak.

* g10/getkey.c (finish_lookup): Clarify that we do not return a
reference.
(lookup): Clarify the relation between RET_KEYBLOCK and RET_FOUND_KEY.
Check arguments.  Actually release the node if it is not returned.
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 15 2016, 3:11 PM
Parents
rG1d03cc77e170: g10: Fix iteration over getkey results.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rGd20107f6da09: g10: Fix memory leak. (authored by Justus Winter <justus@g10code.com>).Nov 15 2016, 3:38 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:10 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:33 PM