On this error path, we should not free lttng_chan, because it is located
within an allocated shm memory area associated with the channel now. It
is invalid to free this pointer.
This is invoked on a channel creation error path.
Reported-by: Aravind HT <aravind.ht@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/* error path after channel was created */
objd_error:
notransport:
/* error path after channel was created */
objd_error:
notransport:
alloc_error:
channel_destroy(chan, channel_handle, 0);
return ret;
alloc_error:
channel_destroy(chan, channel_handle, 0);
return ret;