X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_trigger.c;h=83fd1c4473c437897cf95caf08a49c999cf951f7;hb=8b5240601e4ddf6127e4291b7194dd5179cb35b5;hp=bbba2d4d88b8c26b90ce6f5e05cb06f7730e83f3;hpb=f6b73530e969cb5bde9bc069f72ceec932bc86ef;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index bbba2d4d8..83fd1c447 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -273,7 +273,7 @@ static int parse_kernel_probe_opts(const char *source, address = strtoul(s_hex, NULL, 0); *location = lttng_kernel_probe_location_address_create(address); - if (!location) { + if (!*location) { ERR("Failed to create symbol kernel probe location."); goto error; } @@ -1114,9 +1114,10 @@ struct lttng_action *handle_action_simple_session( error: lttng_action_destroy(action); action = NULL; - free(error); argpar_item_destroy(item); end: + free(error); + argpar_state_destroy(state); return action; }