Corrected reallocate to safely make a new pointer for testing before rewriting existing data pointer.
Corrected reallocate to safely make a new pointer for testing before rewriting existing data pointer.

Jean-LouisH/LaniaEngine,Jean-LouisH/LaniaEngine,Jean-LouisH/LaniaEngine