cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] Memory Leak Problem (0.5.2)

From: Nicolas Le Goff <nicolas_at_1-click.com>
Date: Mon, 14 Nov 2005 17:49:00 +0100

Hi,

For those of you using version 0.5.2 under Windows, I suggest you to make a
little change to the source code.

I'm using version 0.5.2 at this time, and I work with the Microsoft Visual
C++ 7.1 compiler.
With this configuration, an annonying memory leak problem could occur.
Every call to "setOpt() functions" leaks some memory.

There is a solution : add a empty virtual destructor to the OptionBase
class.
Like this (in OptionBase.cpp, and corresponding definition in .hpp):

cURLpp::OptionBase::~OptionBase()
{};

I can't figure out why the Microsoft compiler doesn't call the Option class
destructor when there is no specified OptionBase destructor, but this is
what happens.

I saw that version 0.6.0 has that change already done in the source code, so
do not matter !

I hope it could help some of you,

Regards,

Nicolas LE GOFF

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-11-14

These mail archives are generated by hypermail.

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

File upload with ASP.NET