X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=ustctl%2Fustctl.c;h=d29097567aed1b93143c5f22c66a391f0992833b;hp=8a5f6baf298782461895ce688570a0f803a17746;hb=7032c7d350bfa093db533713df8a14df37360bdc;hpb=c57b6f82bde7ffe4143b6d6d2717ae01702b7ac6 diff --git a/ustctl/ustctl.c b/ustctl/ustctl.c index 8a5f6ba..d290975 100644 --- a/ustctl/ustctl.c +++ b/ustctl/ustctl.c @@ -147,7 +147,7 @@ int parse_opts_long(int argc, char **argv, struct ust_opts *opts) if (argc - optind > 0 && opts->cmd != GET_ONLINE_PIDS) { int i; int pididx=0; - opts->pids = malloc((argc-optind+1) * sizeof(pid_t)); + opts->pids = zmalloc((argc-optind+1) * sizeof(pid_t)); for(i=optind; i