Changed a missed occurance of malloc to g_try_malloc