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)
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>

No differences found
This page took 0.027456 seconds and 5 git commands to generate.