From 79f07e8751f1c0a522a1a8ac0bcfb66f90ce399c Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 9 Jul 2013 07:19:20 -0700 Subject: [PATCH] cleanup --- xwords4/common/mempool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xwords4/common/mempool.c b/xwords4/common/mempool.c index 206c4de04..5a5768ac2 100644 --- a/xwords4/common/mempool.c +++ b/xwords4/common/mempool.c @@ -228,6 +228,7 @@ mpool_free( MemPoolCtx* mpool, void* ptr, const char* file, if ( !entry ) { XP_LOGF( "findEntryFor failed; called from %s, line %ld in %s", func, lineNo, file ); + XP_ASSERT( 0 ); } else { #ifdef MPOOL_DEBUG @@ -251,11 +252,7 @@ mpool_free( MemPoolCtx* mpool, void* ptr, const char* file, ++mpool->nFree; --mpool->nUsed; - - return; } - - XP_ASSERT( 0 ); } /* mpool_free */ void