Fix: remove double consumer_del_stream in error path
authorDavid Goulet <dgoulet@efficios.com>
Tue, 23 Apr 2013 17:14:19 +0000 (13:14 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 23 Apr 2013 17:14:19 +0000 (13:14 -0400)
During a recv_stream call, an error path could have try to delete a
stream two times and could ultimately have triggererd a double free and
refcount issues on the channel.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/ust-consumer/ust-consumer.c

index 5dbd6ba4b4aff3feea113a2092165d13bf5bd160..9f87083384626ea21f4a397d1037df612cf9f34d 100644 (file)
@@ -589,7 +589,6 @@ int lttng_ustconsumer_on_recv_stream(struct lttng_consumer_stream *stream)
 
        ret = lttng_ustconsumer_add_stream(stream);
        if (ret) {
-               consumer_del_stream(stream, NULL);
                ret = -1;
                goto error;
        }
This page took 0.027492 seconds and 4 git commands to generate.