cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1368 cacertinmem.c sample memory leak

From: Marko <marknav_at_users.sf.net>
Date: Thu, 08 May 2014 13:48:00 +0000

---
** [bugs:#1368] cacertinmem.c sample memory leak**
**Status:** open
**Created:** Thu May 08, 2014 01:47 PM UTC by Marko
**Last Updated:** Thu May 08, 2014 01:47 PM UTC
**Owner:** nobody
While investigating a memory leak in our application, I discovered that "sslctx_function" callback that was implemented following the cacertinmem.c sample was causing it.
After X509_STORE_add_cert, X509_free(cert) should be called, as X509_STORE_add_cert increments reference count. Also, BIO_free(bio) must be called.
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-05-08

These mail archives are generated by hypermail.

donate! Page updated March 21, 2014.
web site info

File upload with ASP.NET