Using g_free instead of free