Most of the rilmodem code ( except for one instance in voicecall ) always uses g_trynew0() vs. g_malloc0().