X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libustcomm%2Fmultipoll.c;fp=libustcomm%2Fmultipoll.c;h=80426e3001a3de44e3db66e743fdf259f8dbcb11;hp=1210b93dd9d3714ddcb7e9dd17ce2741c2927aa0;hb=7032c7d350bfa093db533713df8a14df37360bdc;hpb=c57b6f82bde7ffe4143b6d6d2717ae01702b7ac6 diff --git a/libustcomm/multipoll.c b/libustcomm/multipoll.c index 1210b93..80426e3 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; }