struct lttng_channel: split protocol ABI from instrumentation ABI
[lttng-ust.git] / liblttng-ust / lttng-events.c
index 625d98af7e8a7d5549da43f0860a3a53fc97dd01..d5fd9fee2f04b5636a4288e590a901ff8adf72d7 100644 (file)
@@ -239,11 +239,8 @@ void _lttng_channel_unmap(struct lttng_channel *lttng_chan)
        lttng_destroy_context(lttng_chan->ctx);
        chan = lttng_chan->chan;
        handle = lttng_chan->handle;
-       /*
-        * note: lttng_chan is private data contained within handle. It
-        * will be freed along with the handle.
-        */
        channel_destroy(chan, handle, 0);
+       free(lttng_chan);
 }
 
 static
This page took 0.025319 seconds and 4 git commands to generate.