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