Fix: sessiond: lttng_channel object is not reclaimed
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 1 Mar 2022 15:31:33 +0000 (10:31 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:16:28 +0000 (14:16 -0500)
commitcfb1642dfc940ec63ec86e0721f0f5cdf5a79fe7
tree731f5b0e970a07b1cf30684870e407a0b0aef5f5
parent1c6806108ad529966516cb253ac96996ca2777cd
Fix: sessiond: lttng_channel object is not reclaimed

The reclaim is also missing on the error path.

Reported by Coverity:

    CID 1475807: Resource leak (RESOURCE_LEAK)
    Variable channel going out of scope leaks the storage it points to.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9ae59900f6bc33282b8b8a65b834a718428a7f50
src/bin/lttng-sessiond/cmd.c
This page took 0.026015 seconds and 4 git commands to generate.