Use g_try_malloc() for some memory allocations, and return an "out of