#include <common/utils.h>
#include "../command.h"
-#include <lttng/rotation.h>
+#include <lttng/lttng.h>
static char *opt_session_name;
static struct mi_writer *writer;
}
while ((opt = poptGetNextOpt(pc)) != -1) {
+ if (opt_arg) {
+ free(opt_arg);
+ opt_arg = NULL;
+ }
switch (opt) {
case OPT_HELP:
SHOW_HELP();
if (free_session_name) {
free(session_name);
}
+ free(opt_arg);
return cmd_ret;
error: