Revision 7267c094 linux-aio.c

b/linux-aio.c
204 204
{
205 205
    struct qemu_laio_state *s;
206 206

  
207
    s = qemu_mallocz(sizeof(*s));
207
    s = g_malloc0(sizeof(*s));
208 208
    s->efd = eventfd(0, 0);
209 209
    if (s->efd == -1)
210 210
        goto out_free_state;
......
221 221
out_close_efd:
222 222
    close(s->efd);
223 223
out_free_state:
224
    qemu_free(s);
224
    g_free(s);
225 225
    return NULL;
226 226
}

Also available in: Unified diff