From b47bce651e64ddeab722f599c0a682281b626c45 Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 8 Dec 2007 15:47:23 +0000 Subject: (svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions. --- src/oldpool.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/oldpool.cpp') diff --git a/src/oldpool.cpp b/src/oldpool.cpp index df4731777..3d8326828 100644 --- a/src/oldpool.cpp +++ b/src/oldpool.cpp @@ -55,12 +55,9 @@ bool OldMemoryPoolBase::AddBlockToPool() /* Increase the poolsize */ this->blocks = ReallocT(this->blocks, this->current_blocks + 1); - if (this->blocks == NULL) error("Pool: (%s) could not allocate memory for blocks", this->name); /* Allocate memory to the new block item */ this->blocks[this->current_blocks] = MallocT(this->item_size * (1 << this->block_size_bits)); - if (this->blocks[this->current_blocks] == NULL) - error("Pool: (%s) could not allocate memory for blocks", this->name); /* Clean the content of the new block */ memset(this->blocks[this->current_blocks], 0, this->item_size * (1 << this->block_size_bits)); -- cgit v1.2.3-70-g09d2