X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fbancache.cpp;h=52449e55e86d7995e34998a92a511547efc96ff9;hb=27b5df44ec546f9b9f3b2783a7505c920f101aad;hp=0d83e6762f8684e9bc1719f807802ec49fd03521;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/bancache.cpp b/src/bancache.cpp index 0d83e6762..52449e55e 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -117,7 +117,6 @@ unsigned int BanCacheManager::RemoveEntries(const std::string &type, bool positi /* we need to remove this one. */ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP); delete b; - b = NULL; BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way. removed++; } @@ -148,7 +147,6 @@ void BanCacheManager::RehashCache() { /* we need to remove this one. */ delete b; - b = NULL; BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way. } else