]> git.saurik.com Git - apt.git/commitdiff
add missing curl_easy_cleanup()
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 9 Jan 2013 13:47:35 +0000 (14:47 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 9 Jan 2013 13:47:35 +0000 (14:47 +0100)
debian/changelog
methods/https.h

index 0b20b03deafd19822a01df5c7e928c913927f518..ec77904e7492dd767c4b4b353ba69b24220181f3 100644 (file)
@@ -20,6 +20,7 @@ apt (0.9.7.8) UNRELEASED; urgency=low
   * methods/https.cc:
     - reuse connection in https, thanks to Thomas Bushnell, BSG for the
       patch. LP: #1087543, Closes: #695359
+    - add missing curl_easy_cleanup()
 
  -- Christian Perrier <bubulle@debian.org>  Mon, 24 Dec 2012 07:01:20 +0100
 
index b1961a8706f4043cacbe31f4fc5d20912e3b987e..293e288e06f8d6fe1872bbcf4769ff4d2fc48ae5 100644 (file)
@@ -41,6 +41,11 @@ class HttpsMethod : public pkgAcqMethod
       File = 0;
       curl = curl_easy_init();
    };
+
+   ~HttpsMethod()
+   {
+      curl_easy_cleanup(curl);
+   };
 };
 
 #include <apt-pkg/strutl.h>