X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Ftrack-untrack.c;h=154501e597ab56a6de266447be1f6c995235efc3;hb=e1f481f68598431b2b9eca264a2ec0c7f5aea686;hp=3771de5d94b5b7bfcaacf26b0663044cecaac98f;hpb=38b4ef1b199ddb15db78774a39e9c524ca7e2d24;p=lttng-tools.git diff --git a/src/bin/lttng/commands/track-untrack.c b/src/bin/lttng/commands/track-untrack.c index 3771de5d9..154501e59 100644 --- a/src/bin/lttng/commands/track-untrack.c +++ b/src/bin/lttng/commands/track-untrack.c @@ -87,7 +87,7 @@ int parse_pid_string(const char *_pid_string, goto error; } if (all) { - pid_list = zmalloc(sizeof(*_pid_list)); + pid_list = zmalloc(sizeof(*pid_list)); if (!pid_list) { ERR("Out of memory"); retval = CMD_ERROR; @@ -149,7 +149,7 @@ int parse_pid_string(const char *_pid_string, goto error; } - /* Copy */ + /* Reparse string and populate the pid list. */ count = 0; one_pid_str = strtok_r(pid_string, ",", &iter); while (one_pid_str != NULL) {