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;
}
argpar_item_destroy(item);
end:
free(error);
+ argpar_state_destroy(state);
return action;
}