Arduino Yún probelms with RAM?

I have upgraded it as you said and it helped a little. Now it receives 256 messages and then it dies. Before it was sometimes only 80 messages. But my problem is not solved. Is there a function to erase the memory something like flush() ? Or is the allocating memory the possible way? Pointing on the one place in memory will force the Yún to save variables exactly on the same place every time and not to use and fill all the memory? Thanks.