diff --git a/src/misc/block.c b/src/misc/block.c index 656a17c135e9aa3f6662b05450b881b6d7c761fd..43b3ec49b4dbe474540a07384d5d758faa1b37a5 100644 --- a/src/misc/block.c +++ b/src/misc/block.c @@ -224,6 +224,8 @@ block_t *block_Realloc( block_t *p_block, ssize_t i_prebody, size_t i_body ) memcpy( p_rea->p_buffer, p_block->p_buffer, p_block->i_buffer ); } block_Release( p_block ); + if( p_rea == NULL ) + return NULL; p_block = p_rea; } else