Home GnuPG
Diffusion GnuPG 29beea6462cc

g10: Fix keybox-related memory leaks.
29beea6462ccUnpublished

Unpublished Commit ยท Learn More

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

Description

g10: Fix keybox-related memory leaks.

* g10/keydb.c (keydb_release): Clear keyblock cache.
(keydb_get_keyblock): Revert previous change.
* kbx/keybox-blob.c (create_blob_finish): Free previous buffer, free
fixups after applying them.
(_keybox_release_blob): Free buffer.  Currently, the buffer has been
extracted before the keybox is released, but this is the right thing
to do here.
  • Fixes-commit: c57501cc
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Jun 30 2016, 5:09 PM
Parents
rG5869f518cbd8: g10: Fix memory leak.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG29beea6462cc: g10: Fix keybox-related memory leaks. (authored by Justus Winter <justus@g10code.com>).Jun 30 2016, 6:50 PM