[PATCH] util: convert char pointers to use g_autofree