From: Michael Vogt Date: Wed, 9 Jan 2013 13:47:35 +0000 (+0100) Subject: add missing curl_easy_cleanup() X-Git-Tag: 0.9.8~51 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/45a9cc46a143cc2864bba910cff2d9dfc1172dec?ds=inline;hp=-c add missing curl_easy_cleanup() --- 45a9cc46a143cc2864bba910cff2d9dfc1172dec diff --git a/debian/changelog b/debian/changelog index 0b20b03de..ec77904e7 100644 --- a/debian/changelog +++ b/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 Mon, 24 Dec 2012 07:01:20 +0100 diff --git a/methods/https.h b/methods/https.h index b1961a870..293e288e0 100644 --- a/methods/https.h +++ b/methods/https.h @@ -41,6 +41,11 @@ class HttpsMethod : public pkgAcqMethod File = 0; curl = curl_easy_init(); }; + + ~HttpsMethod() + { + curl_easy_cleanup(curl); + }; }; #include