Fix: consumer output memory leak on creation
authorDavid Goulet <dgoulet@efficios.com>
Fri, 26 Oct 2012 16:20:41 +0000 (12:20 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 26 Oct 2012 16:20:41 +0000 (12:20 -0400)
commit09a90bcd757486eebb38d6d6023c603d9af72b4e
tree3e9ab2130c8172c0e5a202a618a62302a120eb02
parent88a5db7000bfa9a29be7e843e580aae64e9e7b95
Fix: consumer output memory leak on creation

The sockets hash table was allocated two times hence losing the first
reference at the second allocation.

Furthermore, when a kernel/ust session is created, a default consumer is
allocated but was lost short after that when the tracing session current
consumer was copied and the pointer was overwritten.

Note that this fixes the memory leak but there is a code logic that
seems wrong when it comes to handle the consumer object trace path and
subdir during the session creation. A comment has been added and it
should be fixed.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/consumer.c
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/trace-ust.c
This page took 0.02499 seconds and 4 git commands to generate.