Bug #530 » bug530.patch
| src/common/consumer.c | ||
|---|---|---|
|
uatomic_inc(&relayd->refcount);
|
||
|
}
|
||
|
/* Update channel refcount once added without error(s). */
|
||
|
uatomic_inc(&stream->chan->refcount);
|
||
|
/*
|
||
|
* When nb_init_stream_left reaches 0, we don't need to trigger any action
|
||
|
* in terms of destroying the associated channel, because the action that
|
||
| src/common/ust-consumer/ust-consumer.c | ||
|---|---|---|
|
stream->wait_fd = wait_fd;
|
||
|
/*
|
||
|
* Increment channel refcount since the channel reference has now been
|
||
|
* assigned in the allocation process above.
|
||
|
*/
|
||
|
uatomic_inc(&stream->chan->refcount);
|
||
|
/*
|
||
|
* Order is important this is why a list is used. On error, the caller
|
||
|
* should clean this list.
|
||
|
*/
|
||