Changes malloc to zmalloc
[ust.git] / ustctl / ustctl.c
index b9f2dce83b43913bc6aaedd766d160d9a81accdb..d29097567aed1b93143c5f22c66a391f0992833b 100644 (file)
@@ -22,8 +22,7 @@
 #include <stdlib.h>
 #include <fcntl.h>
 
-#include "ustcomm.h"
-#include "ustcmd.h"
+#include "ust/ustcmd.h"
 #include "usterr.h"
 
 enum command {
@@ -148,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<argc; i++) {
                        /* don't take any chances, use a long long */
This page took 0.023549 seconds and 4 git commands to generate.