[gnutls-dev] gnutls-1.6.1.auth_cert.mem-leak.awn.1.patch

Andrew W. Nosenko andrew.w.nosenko at gmail.com
Fri Apr 27 15:35:47 CEST 2007


On 4/27/07, Simon Josefsson <simon at josefsson.org> wrote:
> "Andrew W. Nosenko" <andrew.w.nosenko at gmail.com> writes:
>
> > 2007-04-26  Andrey Nosenko  <andrew.w.nosenko at gmail.com>
> >
> >        * lib/auth_cert.c (_gnutls_selected_certs_deinit):
> >        Fix memory leak.
>
> Thanks.  When do the mem leak happen?  In other words, how do I trigger
> it?

  $ gnutls-cli --x509keyfile client-key.pem --x509certfile
client-cert.pem some.webservices.site.com < /dev/null

> I'd like to write a self-test that trigger it (which could be used
> with valgrind) to improve our regression-testing, if it isn't too
> difficult to do.

Yes, I also used valgrind for hunting of this leak.  But have no idea
about how to automate it...

-- 
Andrew W. Nosenko <andrew.w.nosenko at gmail.com>



More information about the Gnutls-dev mailing list