address = strtoul(s_hex, NULL, 0);
*location = lttng_kernel_probe_location_address_create(address);
- if (!location) {
+ if (!*location) {
ERR("Failed to create symbol kernel probe location.");
goto error;
}
error:
lttng_action_destroy(action);
action = NULL;
- free(error);
argpar_item_destroy(item);
end:
+ free(error);
+ argpar_state_destroy(state);
return action;
}
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;