On Tue, 11/25 13:38, Stefan Hajnoczi wrote: > On Tue, Nov 25, 2014 at 04:07:57PM +0800, Fam Zheng wrote: > > +QEMUPoll *qemu_poll_new(void) > > +{ > > + int epollfd; > > + QEMUPoll *qpoll = g_new0(QEMUPoll, 1); > > + epollfd = epoll_create1(EPOLL_CLOEXEC); > > + if (epollfd < 0) { > > + perror("epoll_create1:"); > > + abort(); > > + } > > + qpoll->epollfd = epollfd; > > + qpoll->max_events = 1; > > + g_free(qpoll->events); > > What is the point of this g_free() call?
Bad rebase, I guess. Dropping. Fam