And it is quite sure that the memory allocation is the reason? Since changes do nothing there: couldn't something completely different be the cause?