curl-library
possibly memory leak when doing sftp download
Date: Wed, 5 Apr 2017 21:41:20 -0500
Hello
Using libcurl 7.53.1 with libssh2 1.8.0 in Windows, I find the memory
grows without bound when doing an sftp download, but only when
CURLOPT_TIMEOUT is non-zero.
I tested this with a binary SSL SSH build from the curl download page.
minimal example:
#include <curl/curl.h>
int main()
{
curl_global_init(CURL_GLOBAL_ALL);
while (1) {
CURL* easy = curl_easy_init();
curl_easy_setopt(easy, CURLOPT_TIMEOUT, 60L);
curl_easy_setopt(easy, CURLOPT_USERPWD, "sshtest:sshtest");
curl_easy_setopt(easy, CURLOPT_URL, "sftp://10.1.10.2/home/sshtest/");
curl_easy_perform(easy);
curl_easy_cleanup(easy);
}
return 0;
}
Eric
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-06