Fix: sessiond: lttng_channel object is not reclaimed
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 1 Mar 2022 19:23:52 +0000 (14:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Mar 2022 19:23:52 +0000 (14:23 -0500)
commitd9a1fd3e4a81c4d74ee555401fa18e4bb21f21ee
tree52d82ff218d011f17f0b250bec7035668cd5ea37
parentd133f6d7bba25fb5662108987a929abbfcaabc7f
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.02536 seconds and 4 git commands to generate.