cURL / Mailing Lists / curl-library / Single Mail


Memory leak in libcurl

From: Huzaifa Al Nahas <>
Date: Fri, 19 Dec 2008 19:45:13 -0800

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>


int main(int argc, char *argv[])

  CURL *curl;

  curl = curl_easy_init();


  if (_CrtDumpMemoryLeaks())
          std::cout << "Memory Leak" << std::endl;
          std::cout << "No memory leak found" << std::endl;

  return 0;
Received on 2008-12-20