curl-library
Memory leak in libcurl
From: Huzaifa Al Nahas <halnahas_at_gmail.com>
Date: Fri, 19 Dec 2008 19:45:13 -0800
Date: Fri, 19 Dec 2008 19:45:13 -0800
Greetings,
VC++ 8.0 is reporting a memory leak after curl cleans an easy handle.
Is this a known issue?
I tested curl-7.19.0, and curl-7.18.1. Both built with ssl support
(openssl version: is openssl-0.9.8e for curl-7.19.0 and OpenSSL/0.9.8d
for curl-7.18.1).
The code that revealed this memory leak is:
#include <iostream>
#include <curl/curl.h>
#include <crtdbg.h>
#define _CRTDBG_MAP_ALLOC
int main(int argc, char *argv[])
{
CURL *curl;
curl = curl_easy_init();
curl_easy_cleanup(curl);
if (_CrtDumpMemoryLeaks())
std::cout << "Memory Leak" << std::endl;
else
std::cout << "No memory leak found" << std::endl;
return 0;
}
Received on 2008-12-20