diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index 4143f630c846a6a1df117caa921a6c3d23645522..629e76f341f6c66c0c5ae6eb4138fbdbf5ca8780 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -1687,6 +1687,10 @@ void LLPrivateMemoryPool::removeFromHashTable(LLMemoryChunk* chunk)
 	
 	mChunkHashList[start_key] = chunk->mHashNext ;
 	chunk->mHashNext = NULL ;
+	if(start_key == end_key)
+	{
+		return ; //done
+	}
 
 	if(mChunkHashList[end_key] != chunk)
 	{