[gnutls-devel] Memory leak in read_key_mem (gnutls:x509.c)

Georg Richter georg at mariadb.com
Mon Nov 24 13:15:43 CET 2014


Hi,

I just stumbled over a memory leak in read_key_mem function:
The function allocates memory via gnutls_privkey_init but doesn't free it
if gnutls_privkey_impport_x509_raw fails.

Patch attached.

/Georg

-- 
Georg Richter, Senior Software Engineer
MariaDB Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20141124/55b0c6e3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls_memleak.patch
Type: text/x-patch
Size: 322 bytes
Desc: not available
URL: </pipermail/attachments/20141124/55b0c6e3/attachment.bin>


More information about the Gnutls-devel mailing list