diff --git a/indra/llcommon/llmemory.cpp b/indra/llcommon/llmemory.cpp
index 62db7e338523041a7723e0e414370a0639b85a88..dfc00b5e0ae5a636a8b63b48f0c25c6e2c52b69f 100644
--- a/indra/llcommon/llmemory.cpp
+++ b/indra/llcommon/llmemory.cpp
@@ -142,7 +142,7 @@ void* LLMemory::tryToAlloc(void* address, U32 size)
 	}
 	return address ;
 #else
-	return 0x01 ; //skip checking
+	return (void*)0x01 ; //skip checking
 #endif	
 }
 
@@ -1079,6 +1079,8 @@ LLPrivateMemoryPool::LLMemoryBlock* LLPrivateMemoryPool::LLMemoryChunk::createNe
 	if(new_free_blk_size > 0) //blk still has free space
 	{
 		LLMemoryBlock* next_blk = blk + (buffer_size / mMinBlockSize) ;
+		next_blk->mPrev = NULL ;
+		next_blk->mNext = NULL ;
 		next_blk->setBuffer(blk->getBuffer() + buffer_size, new_free_blk_size) ;
 		addToFreeSpace(next_blk) ;
 	}