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 http_ntlm.c

From: Chris Deidun <CDeidun_at_evertz.com>
Date: Tue, 3 Mar 2009 17:06:25 -0500

I have noticed a memory leak located in http_ntlm.c with USE_WINDOWS_SSPI defined ( I am using version 7.19.4 ). The buffer that is allocated on line 270 is never freed when USE_WINDOWS_SSPI is defined.

I believe the fix is that line 307 ( free(buffer); ) should be moved after the #endif statement.

So Lines 307-308 should be changed from:

      free(buffer);
#endif

to:

#endif
      free(buffer);

--
Cheers,
Chris
Received on 2009-03-03

These mail archives are generated by hypermail.

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

File upload with ASP.NET