notification-thread: drain all tracer notification on removal
[lttng-tools.git] / src / bin / lttng / commands / add_trigger.c
index 74bb2b2aa2e4d9c2ad11e078431074ad570b39d6..83fd1c4473c437897cf95caf08a49c999cf951f7 100644 (file)
@@ -273,7 +273,7 @@ static int parse_kernel_probe_opts(const char *source,
 
                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;
                }
@@ -1117,6 +1117,7 @@ error:
        argpar_item_destroy(item);
 end:
        free(error);
+       argpar_state_destroy(state);
        return action;
 }
 
This page took 0.023885 seconds and 4 git commands to generate.