diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-06-13 08:52:55 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-06-13 08:52:55 (GMT) |
commit | 053e9bc973fbe88fc41a34064ffadc0deabac58d (patch) | |
tree | 6aeee286577159ffcb612d41972a9d18ab685c6d /src/uscxml/util/URL.h | |
parent | 6e13c7b6e0888323223afd5d2e36e86243df57af (diff) | |
download | uscxml-053e9bc973fbe88fc41a34064ffadc0deabac58d.zip uscxml-053e9bc973fbe88fc41a34064ffadc0deabac58d.tar.gz uscxml-053e9bc973fbe88fc41a34064ffadc0deabac58d.tar.bz2 |
Fixed dozens of memory leaks
Diffstat (limited to 'src/uscxml/util/URL.h')
-rw-r--r-- | src/uscxml/util/URL.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/uscxml/util/URL.h b/src/uscxml/util/URL.h index 8127892..2b5c9e0 100644 --- a/src/uscxml/util/URL.h +++ b/src/uscxml/util/URL.h @@ -165,7 +165,7 @@ protected: static void prepareException(ErrorEvent& exception, int errorCode, const std::string& origUri, UriParserStateA* parser); - CURL* _handle; + CURL* _handle = NULL; std::stringstream _rawInContent; std::stringstream _rawInHeader; std::map<std::string, std::string> _inHeaders; @@ -176,8 +176,8 @@ protected: std::string _statusCode; std::string _statusMsg; - bool _isDownloaded; - bool _hasFailed; + bool _isDownloaded = false; + bool _hasFailed = false; std::string _error; std::condition_variable_any _condVar; @@ -325,6 +325,7 @@ protected: bool _isStarted; std::map<CURL*, URL> _handlesToURLs; + std::map<CURL*, curl_slist*> _handlesToHeaders; CURLM* _multiHandle; char* _envProxy; }; |