X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_trigger.c;h=74bb2b2aa2e4d9c2ad11e078431074ad570b39d6;hp=9d013122d76a812038ef369798f289b6aebaf995;hb=cb1b81ea79adcdc60a2ead88aa787dbbcb2bf422;hpb=14f27f798c912b58dca37abe8523b3cffd0d17b4 diff --git a/src/bin/lttng/commands/add_trigger.c b/src/bin/lttng/commands/add_trigger.c index 9d013122d..74bb2b2aa 100644 --- a/src/bin/lttng/commands/add_trigger.c +++ b/src/bin/lttng/commands/add_trigger.c @@ -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,8 +1114,9 @@ struct lttng_action *handle_action_simple_session( error: lttng_action_destroy(action); action = NULL; - free(error); + argpar_item_destroy(item); end: + free(error); return action; } @@ -1439,7 +1441,9 @@ 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; }