sessiond: clean-up: silence warning that agent event is leaked
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Sep 2019 21:06:23 +0000 (17:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Sep 2019 21:06:23 +0000 (17:06 -0400)
commit6fe2a7d00ab34f9a4db653c04819cd465fefa196
tree5b4d44b2886552fd21ff4d3ccf4b63b31d7e866f
parent0916f272a91b4e8840bc11b4c0efb883c089e16a
sessiond: clean-up: silence warning that agent event is leaked

Both Coverity and scan-build got confused by this
function. Essentially, they warn that aevent can be leaked if
it is created in an already enabled state. We know that this can't
happen as the events are created in a disabled state.

Add an assert that created events are not enabled to help the static
analyzers. This could also catch the leak should this change in the
future.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/event.c
This page took 0.02715 seconds and 5 git commands to generate.