When passing the lookup_method to the location create function we give
it the ownership of that structure. By setting our pointer to NULL, we
make sure the _destroy function won't free it.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lttng_userspace_probe_location_tracepoint_create(
binary_path, provider_name,
probe_name, lookup_method);
lttng_userspace_probe_location_tracepoint_create(
binary_path, provider_name,
probe_name, lookup_method);