Fix: perf counters ABI rdpmc detection
[lttng-ust.git] / liblttng-ust / lttng-ust-abi.c
index 7e513a98d09393c4d379e791406d3c151ee1df10..c8479960d7c635772b01eb0200d0b4c972bbe7ee 100644 (file)
@@ -467,8 +467,6 @@ int lttng_abi_map_channel(int session_objd,
                chan_name = "channel";
                break;
        default:
-               transport_name = "<unknown>";
-               chan_name = "<unknown>";
                ret = -EINVAL;
                goto notransport;
        }
@@ -514,7 +512,6 @@ int lttng_abi_map_channel(int session_objd,
        /* error path after channel was created */
 objd_error:
 notransport:
-       free(lttng_chan);
 alloc_error:
        channel_destroy(chan, channel_handle, 0);
        return ret;
@@ -989,6 +986,8 @@ static const struct lttng_ust_objd_ops lttng_enabler_ops = {
 void lttng_ust_abi_exit(void)
 {
        lttng_ust_abi_close_in_progress = 1;
+       ust_lock_nocheck();
        objd_table_destroy();
+       ust_unlock();
        lttng_ust_abi_close_in_progress = 0;
 }
This page took 0.027416 seconds and 4 git commands to generate.