Check allocation and initialise memory