[libvirt PATCH 17/21] tests: Use glib memory functions in add_fd