Fix: lttng: add-trigger: leak of error string
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index bbba2d4d88b8c26b90ce6f5e05cb06f7730e83f3..74bb2b2aa2e4d9c2ad11e078431074ad570b39d6 100644 (file)
@@ -1114,9 +1114,9 @@ struct lttng_action *handle_action_simple_session(
 error:
        lttng_action_destroy(action);
        action = NULL;
 error:
        lttng_action_destroy(action);
        action = NULL;
-       free(error);
        argpar_item_destroy(item);
 end:
        argpar_item_destroy(item);
 end:
+       free(error);
        return action;
 }
 
        return action;
 }
 
This page took 0.023246 seconds and 4 git commands to generate.