X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fbancache.cpp;h=52449e55e86d7995e34998a92a511547efc96ff9;hb=748b3a0d89e7ecc9a766471b79fb78f63a5ca2bb;hp=0d83e6762f8684e9bc1719f807802ec49fd03521;hpb=46a39046196f55b52336e19662bb7bac85b731ac;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