From: Bjoern Sikora Date: Tue, 15 Sep 2009 15:28:23 +0000 (+0200) Subject: Bugfix: Free up memory in httphelper. X-Git-Tag: v1.1~188 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=891ae3b9eb8fbe83aa141e26753f22f473673a51;p=bpdyndnsd Bugfix: Free up memory in httphelper. Bugfix: Init ProxyPort in config.cpp. --- diff --git a/src/config.cpp b/src/config.cpp index a8635f8..d1cee9f 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -46,6 +46,7 @@ Config::Config(Logger::Ptr _log, Serviceholder::Ptr _serviceholder) , EnableIPv6(false) , Loglevel(0) , ConfigPath("/etc/bpdyndnsd") + , ProxyPort(0) , ExternalWarningLog("") , ExternalWarningLevel(0) { diff --git a/src/httphelper.cpp b/src/httphelper.cpp index f3feefd..18aec0a 100644 --- a/src/httphelper.cpp +++ b/src/httphelper.cpp @@ -9,15 +9,6 @@ #include "httphelper.h" -/** - * Default Constructor - */ -HTTPHelper::HTTPHelper() - : Log(new Logger) - , ProxyPort(0) -{ -} - /** * Constructor. Use this constructor if HTTP AUTH should be used. Username and password will then be set as HTTP auth options. @@ -57,6 +48,9 @@ HTTPHelper::HTTPHelper(Logger::Ptr _log, const string& _proxy, const int _proxy_ */ HTTPHelper::~HTTPHelper() { + // Free memory + curl_easy_cleanup(CurlEasyHandle); + free(CurlErrBuff); }