X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_trigger.c;h=83fd1c4473c437897cf95caf08a49c999cf951f7;hp=2a7b29d522796c88419fc8b332bcb5b280b45e05;hb=5c6ca80951867d21c8a91b36560f0e18e4d2f232;hpb=97abbc84fe032ca8d7cce7b8e64200981ffa6966 diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 2a7b29d52..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; } @@ -789,6 +789,7 @@ end: free(filter); free(exclude); free(loglevel_str); + free(source); strutils_free_null_terminated_array_of_strings(exclusion_list); lttng_kernel_probe_location_destroy(kernel_probe_location); lttng_userspace_probe_location_destroy(userspace_probe_location); @@ -1113,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; } @@ -1440,6 +1442,7 @@ end: free(ctrl_url_arg); free(data_url_arg); free(snapshot_output); + free(max_size_arg); argpar_state_destroy(state); argpar_item_destroy(item); return action;