diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_dnsbl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 1cd08024b..c2f666c7e 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -34,6 +34,7 @@ class DNSBLConfEntry long duration; int bitmask; DNSBLConfEntry(): duration(86400),bitmask(0) {} + ~DNSBLConfEntry() { } }; @@ -179,11 +180,9 @@ class ModuleDNSBL : public Module void ClearEntries() { std::vector<DNSBLConfEntry *>::iterator i; - while ((i = DNSBLConfEntries.begin()) != DNSBLConfEntries.end()) - { - DNSBLConfEntries.erase(i); + for (std::vector<DNSBLConfEntry *>::iterator i = DNSBLConfEntries.begin(); i != DNSBLConfEntries.end(); i++) delete *i; - } + DNSBLConfEntries.clear(); } /** Fill our conf vector with data |