The lttng_track_pid and lttng_untrack_pid functions were reimplemented
on top of the new lttng_process_attr_tracker_handle API (new in 2.12).
Both functions do not destroy the tracker handle on their return
path.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ieeeace2011ba6ee1e5024306ea735f0389c3980d
(pid_t) pid);
ret_code = handle_status_to_error_code(handle_status);
end:
+ lttng_process_attr_tracker_handle_destroy(tracker_handle);
return ret_code == LTTNG_OK ? 0 : -ret_code;
}
ret_code = LTTNG_ERR_PID_NOT_TRACKED;
}
end:
+ lttng_process_attr_tracker_handle_destroy(tracker_handle);
return ret_code == LTTNG_OK ? 0 : -ret_code;
}