cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Memory leak in libcurl

From: Huzaifa Al Nahas <halnahas_at_gmail.com>
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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET