Real time Patch with an enhancement in memory allocation strategy