I can change this, but I prefer g_malloc for two reasons (say we have struct xx *var):

1.- I think it is less error prone to do malloc(*var) than trynew(struct xx, 1), as no error will be produced using the later if var changes its type.

2.- I prefer to avoid "try" in cases like this, as if there is no memory for such a small structure something is going very bad and is preferable to abort ofono and let upstart re-start it.