jstedfast / gmime

A C/C++ MIME creation and parser library with support for S/MIME, PGP, and Unix mbox spools.
GNU Lesser General Public License v2.1
111 stars 36 forks source link

GMimeAutocryptHeader leak #118

Closed PeterBloomfield closed 2 years ago

PeterBloomfield commented 2 years ago

In g_mime_autocrypt_header_list_add_missing_addresses(), ah is created with g_mime_autocrypt_header_new (), and added to list with g_mime_autocrypt_header_list_add (list, ah), which takes a GObject reference when adding it. But ah is not subsequently unreffed, and the object is lost.

Previously a GitLab issue.

PeterBloomfield commented 2 years ago

Thanks for the quick fix!