*location = lttng_kernel_probe_location_symbol_create(
symbol_name, 0);
- if (!location) {
+ if (!*location) {
ERR("Failed to create symbol kernel probe location.");
goto error;
}
lttng_action_destroy(action);
action = NULL;
free(error);
+ argpar_item_destroy(item);
end:
return action;
}
free(data_url_arg);
free(snapshot_output);
argpar_state_destroy(state);
+ argpar_item_destroy(item);
return action;
}