Skip to content

Commit

Permalink
Fixed memory leak in curl (#3995)
Browse files Browse the repository at this point in the history
* Fixed memory leak in curl

* fixed documentation in unique_handle.hpp
  • Loading branch information
LarryOsterman authored Oct 5, 2022
1 parent dd2d050 commit 895a1f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Azure { namespace Core { namespace _internal {
*
* template <> struct UniqueHandleHelper<CURL>
* {
* using type = BasicUniqueHandle<CURL, curl_free>;
* using type = BasicUniqueHandle<CURL, curl_easy_cleanup>;
* };
*
* Note that for some types (HINTERNET for example), the helper needs to be a bit more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ namespace Azure { namespace Core {
*/
template <> struct UniqueHandleHelper<CURL>
{
static void FreeHandle(CURL* obj) { curl_free(obj); }

using type = BasicUniqueHandle<CURL, FreeHandle>;
using type = BasicUniqueHandle<CURL, curl_easy_cleanup>;
};
} // namespace _internal

Expand Down
2 changes: 1 addition & 1 deletion sdk/core/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stages:
LiveTestCtestRegex: azure-core.|json-test
LiveTestTimeoutInMinutes: 90 # default is 60 min. We need a little longer on worst case for Win+jsonTests
LineCoverageTarget: 93
BranchCoverageTarget: 55
BranchCoverageTarget: 50
PreTestSteps:
- pwsh: |
docker build -t squid-local $(Build.SourcesDirectory)/sdk/core/azure-core/test/ut/proxy_tests/localproxy
Expand Down

0 comments on commit 895a1f9

Please sign in to comment.