Retry malloc

Don't try this at home.