Просмотр исходного кода

add missing curl_easy_cleanup()

Michael Vogt лет назад: 13
Родитель
Сommit
45a9cc46a1
2 измененных файлов с 6 добавлено и 0 удалено
  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:
   * methods/https.cc:
     - reuse connection in https, thanks to Thomas Bushnell, BSG for the
     - reuse connection in https, thanks to Thomas Bushnell, BSG for the
       patch. LP: #1087543, Closes: #695359
       patch. LP: #1087543, Closes: #695359
+    - add missing curl_easy_cleanup()
 
 
  -- Christian Perrier <bubulle@debian.org>  Mon, 24 Dec 2012 07:01:20 +0100
  -- 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;
       File = 0;
       curl = curl_easy_init();
       curl = curl_easy_init();
    };
    };
+
+   ~HttpsMethod()
+   {
+      curl_easy_cleanup(curl);
+   };
 };
 };
 
 
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/strutl.h>