UrlEncode and UrlDecode was call curl_easy_init to initial CURL object, but seems both of them didn't call curl_easy_cleanup to free it.
According https://curl.haxx.se/libcurl/c/curl_easy_init.html, curl_easy_init must be the first function to call, and it returns a CURL easy handle that you must use as input to other functions in the easy interface. This call MUST have a corresponding call to curl_easy_cleanup when the operation is complete.
Hi,
I found following part of code may cause memory leak , Is there anyone can help double check?
https://github.com/aliyun/aliyun-openapi-cpp-sdk/blob/master/core/src/Utils.cc:
UrlEncode and UrlDecode was call curl_easy_init to initial CURL object, but seems both of them didn't call curl_easy_cleanup to free it.
According https://curl.haxx.se/libcurl/c/curl_easy_init.html, curl_easy_init must be the first function to call, and it returns a CURL easy handle that you must use as input to other functions in the easy interface. This call MUST have a corresponding call to curl_easy_cleanup when the operation is complete.