Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
// ustctx, ustchan->obj, &context_data);
if (ret < 0) {
ret = LTTCOMM_UST_CONTEXT_FAIL;
+ rcu_read_unlock();
goto error;
}
} else {
ret = add_ustctx_to_event(ustsession, ustctx, ustchan, event_name);
if (ret < 0) {
ret = LTTCOMM_UST_CONTEXT_FAIL;
+ rcu_read_unlock();
goto error;
} else if (ret == 1) {
/* Event found and context added */
ret = send_channel_streams(sock, uchan);
if (ret < 0) {
+ rcu_read_unlock();
goto error;
}
hashtable_get_next(usess->channels, &iter);