Page MenuHome GnuPG

Memory leak in gpgme_data_release_and_get_mem
Closed, ResolvedPublic

Description

gpgme_data_release_and_get_mem does not release the data object as it is
supposed to do. (and as it did in libgpgme6)

(Debian bug #389147)

Details

Event Timeline

Might this be the reason that we somewhere have a complaint on Sylpheed eating
up the memory?

werner set External Link to http://bugs.debian.org/389147.Sep 25 2006, 10:58 AM

Hi,

I fixed this in CVS. Thanks for reporting it!

Werner: Could be contributing to it: Sylpheed uses this function extensively,
but as it does not include the buffer, it's only a small amount of memory per
crypto operation. I am nevertheless surprised nobody found this earlier.

doc/
2006-09-25 Marcus Brinkmann <marcus@g10code.de>

  • gpgme.texi (Destroying Data Buffers): Clarify that gpgme_data_release_and_get_mem destroys DH unconditionally.

gpgme/
2006-09-25 Marcus Brinkmann <marcus@g10code.de>

  • data-mem.c (gpgme_data_release_and_get_mem): Release the data object properly.
marcus added a project: Restricted Project.Sep 25 2006, 4:23 PM
werner removed a project: Restricted Project.