Commit c6377693 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

block_Realloc: handle OOM in case of buffer expansion

parent 05347f56
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment