gfileutils: Add missing g_free() in error path