Explorar o código

add missing curl_easy_cleanup()

Michael Vogt %!s(int64=13) %!d(string=hai) anos
pai
achega
45a9cc46a1
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 1 0
      debian/changelog
  2. 5 0
      methods/https.h

+ 1 - 0
debian/changelog

@@ -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
 

+ 5 - 0
methods/https.h

@@ -41,6 +41,11 @@ class HttpsMethod : public pkgAcqMethod
       File = 0;
       curl = curl_easy_init();
    };
+
+   ~HttpsMethod()
+   {
+      curl_easy_cleanup(curl);
+   };
 };
 
 #include <apt-pkg/strutl.h>