#include "../command.hpp"
+namespace {
struct process_attr_command_args {
enum lttng_process_attr process_attr;
/* Present in the user's command. */
bool all;
struct lttng_dynamic_pointer_array string_args;
};
+} /* namespace */
enum cmd_type {
CMD_TRACK,
{
cmd->process_attr = process_attr;
cmd->all = false;
- lttng_dynamic_pointer_array_init(&cmd->string_args, NULL);
+ lttng_dynamic_pointer_array_init(&cmd->string_args, free);
}
static void process_attr_command_fini(struct process_attr_command_args *cmd)