curl_llist_alloc

10 views
Skip to first unread message

Arni Sumarlidason

unread,
Apr 3, 2014, 2:36:30 AM4/3/14
to cur...@googlegroups.com
Hi,

Experimenting with curlpp; does this look correct? I feel like I'm missing something, the memory seems to climb endlessly:

curlpp::initialize( CURL_GLOBAL_ALL);
curlpp::Easy client;
client.setOpt(new curlpp::options::Url("http://www.google.com"));
std::stringstream html;
client.setOpt(cURLpp::Options::WriteStream(&html));

int iRuns = 0;
while(g_bRunning)
{
// clear buffer
html.clear();

// download
client.perform();

std::cout << "finished run " << iRuns++ << "." << std::endl;
}
curlpp::terminate();

Analysis with instruments shows the memory allocated from curl_llist_alloc...

any direction appreciated.
Reply all
Reply to author
Forward
0 new messages