diff options
Diffstat (limited to 'src/bancache.cpp')
-rw-r--r-- | src/bancache.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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 |