X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libustcomm%2Fmultipoll.c;h=80426e3001a3de44e3db66e743fdf259f8dbcb11;hb=f91aa7301fe975dc6b1d5583f7ffb6c4d2dbf325;hp=1210b93dd9d3714ddcb7e9dd17ce2741c2927aa0;hpb=93e5ce29599beb7b32858b3074b8433dfffdab34;p=lttng-ust.git diff --git a/libustcomm/multipoll.c b/libustcomm/multipoll.c index 1210b93d..80426e30 100644 --- a/libustcomm/multipoll.c +++ b/libustcomm/multipoll.c @@ -39,8 +39,8 @@ int multipoll_init(struct mpentries *ent) ent->n_used = 0; ent->n_avail = INITIAL_N_AVAIL; - ent->pollfds = (struct pollfd *) malloc(sizeof(struct pollfd) * INITIAL_N_AVAIL); - ent->extras = (struct pollfd_extra *) malloc(sizeof(struct pollfd_extra) * INITIAL_N_AVAIL); + ent->pollfds = (struct pollfd *) zmalloc(sizeof(struct pollfd) * INITIAL_N_AVAIL); + ent->extras = (struct pollfd_extra *) zmalloc(sizeof(struct pollfd_extra) * INITIAL_N_AVAIL); return 0; }