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:12:32 +0000 (14:12 -0500)
commit88b02a8e7cbdbc728cc681cd07bbe0c738964717
tree59036196d10e8d4c3d903687b3a294b7a3452c84
parent9eb895d71ff4061966b9ef4677fbe14a2ddded12
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.cpp
This page took 0.032131 seconds and 4 git commands to generate.