]> granicus.if.org Git - curl/commitdiff
- Andrei Benea filed bug report #2956698 and pointed out that the
authorDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2010 13:41:18 +0000 (13:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 2 Mar 2010 13:41:18 +0000 (13:41 +0000)
  CURLOPT_CERTINFO feature leaked memory due to a missing OpenSSL function
  call. He provided the patch to fix it too.

  http://curl.haxx.se/bug/view.cgi?id=2956698

CHANGES
RELEASE-NOTES
lib/ssluse.c

diff --git a/CHANGES b/CHANGES
index 23454298cae5836eda4dd0936c56ffe64f357d73..cac085255f87fbf2f9b5198c6ebae1eb51c64d30 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,12 @@
                                   Changelog
 
 Daniel Stenberg (2 Mar 2010)
+- Andrei Benea filed bug report #2956698 and pointed out that the
+  CURLOPT_CERTINFO feature leaked memory due to a missing OpenSSL function
+  call. He provided the patch to fix it too.
+
+  http://curl.haxx.se/bug/view.cgi?id=2956698
+
 - Markus Duft pointed out in bug #2961796 that even though Interix has a
   poll() function it doesn't quite work the way we want it so we must disable
   it, and he also provided a patch for it.
index b35641e0d6400e735a26a41ba9c457a265206ae3..684df8e3e59806b0c01f20e83194768144e22337 100644 (file)
@@ -25,6 +25,7 @@ This release includes the following bugfixes:
  o TFTP upload
  o FTP timeouts after file transferred completely
  o skip poll() on Interix
+ o CURLOPT_CERTINFO memory leak
 
 This release includes the following known bugs:
 
@@ -35,6 +36,6 @@ advice from friends like these:
 
  Steven M. Schweda, Yang Tse, Jack Zhang, Tom Donovan, Martin Hager,
  Daniel Fandrich, Patrick Monnerat, Pat Ray, Wesley Miaw, Ben Greear,
- Ryan Chan, Markus Duft
+ Ryan Chan, Markus Duft, Andrei Benea
 
         Thanks! (and sorry if I forgot to mention someone)
index a1b760e086df5d97455060c1a78f0ee4af410e00..ec5c33b287824bdca70e1a1cc29e861dca8a5b28 100644 (file)
@@ -2125,6 +2125,7 @@ static CURLcode get_cert_chain(struct connectdata *conn,
         break;
 #endif
       }
+      EVP_PKEY_free(pubkey);
     }
 
     X509V3_ext(data, i, cinf->extensions);