From: Jérémie Galarneau Date: Wed, 25 Sep 2019 21:06:23 +0000 (-0400) Subject: sessiond: clean-up: silence warning that agent event is leaked X-Git-Tag: v2.12.0-rc1~352 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=6fe2a7d00ab34f9a4db653c04819cd465fefa196;hp=6fe2a7d00ab34f9a4db653c04819cd465fefa196;p=lttng-tools.git 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 ---