Page MenuHome GnuPG

Memory leak in gpgme_data_release_and_get_mem
Closed, ResolvedPublic


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)


Event Timeline

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

werner set External Link to 25 2006, 10:58 AM


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.

2006-09-25 Marcus Brinkmann <>

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

2006-09-25 Marcus Brinkmann <>

  • data-mem.c (gpgme_data_release_and_get_mem): Release the data object properly.
werner removed a project: Testing.