Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
if (ret < 0) {
ERR("Trace directory creation error");
ret = -1;
- goto end_unlock_channel;
+ pthread_mutex_unlock(&channel->lock);
+ goto end;
}
+ pthread_mutex_unlock(&channel->lock);
cds_lfht_for_each_entry_duplicate(ht->ht,
ht->hash_fct(&channel->key, lttng_ht_seed),
}
ret = 0;
- goto end_unlock_channel;
+ goto end;
end_unlock:
pthread_mutex_unlock(&stream->lock);
-end_unlock_channel:
- pthread_mutex_unlock(&channel->lock);
end:
rcu_read_unlock();
return ret;