Fix: lttng: add-trigger: leak of error string
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index 2a7b29d522796c88419fc8b332bcb5b280b45e05..74bb2b2aa2e4d9c2ad11e078431074ad570b39d6 100644 (file)
@@ -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,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;
 }
 
@@ -1440,6 +1441,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;
This page took 0.022954 seconds and 4 git commands to generate.