File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11v3.x.y - YYYY-MMM-DD (to be released)
22-------------------------------------
33
4+ - Avoids to cleanup GeoIp on ModSecurity destructor
5+ [#2041 - @zimmerle, @jptosso, @victorhora]
46 - Fix memory leak of RuleMessages objects
57 [#2376 - @WGH-, @martinhsv]
68 - Produce not-supported error for ctl:forceRequestBodyVariable
Original file line number Diff line number Diff line change @@ -95,9 +95,6 @@ ModSecurity::~ModSecurity() {
9595#ifdef MSC_WITH_CURL
9696 curl_global_cleanup ();
9797#endif
98- #ifdef WITH_GEOIP
99- Utils::GeoLookup::getInstance ().cleanUp ();
100- #endif
10198#ifdef WITH_LIBXML2
10299 xmlCleanupParser ();
103100#endif
Original file line number Diff line number Diff line change @@ -55,13 +55,16 @@ class GeoLookup {
5555 private:
5656 GeoLookup () :
5757 m_version (NOT_LOADED )
58+ #if WITH_MAXMIND
59+ ,mmdb()
60+ #endif
5861#if WITH_GEOIP
5962 ,m_gi(NULL )
6063#endif
6164 { }
6265 ~GeoLookup ();
63- GeoLookup (GeoLookup const &);
64- void operator =(GeoLookup const &);
66+ GeoLookup (GeoLookup const &) = delete ;
67+ void operator =(GeoLookup const &) = delete ;
6568
6669 GeoLookupVersion m_version;
6770#if WITH_MAXMIND
Original file line number Diff line number Diff line change @@ -51,14 +51,14 @@ functionStatic:src/engine/lua.h:80
5151functionConst:src/utils/geo_lookup.h:49
5252useInitializationList:src/operators/rbl.h:69
5353constStatement:test/common/modsecurity_test.cc:82
54- danglingTemporaryLifetime:src/modsecurity.cc:204
54+ danglingTemporaryLifetime:src/modsecurity.cc:201
5555functionStatic:src/operators/geo_lookup.h:35
5656duplicateBreak:src/operators/validate_utf8_encoding.cc
5757duplicateBranch:src/request_body_processor/multipart.cc:91
5858syntaxError:src/transaction.cc:62
5959noConstructor:src/variables/variable.h:152
6060duplicateBranch:src/request_body_processor/multipart.cc:93
61- danglingTempReference:src/modsecurity.cc:204
61+ danglingTempReference:src/modsecurity.cc:201
6262knownConditionTrueFalse:src/operators/validate_url_encoding.cc:79
6363knownConditionTrueFalse:src/operators/verify_svnr.cc:90
6464noConstructor:src/actions/rule_id.h:30
You can’t perform that action at this time.
0 commit comments