Fix: sessiond: kernel: leak of notifier rule on failure to init notifier
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2021 19:08:55 +0000 (14:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 Feb 2021 19:38:09 +0000 (14:38 -0500)
commitb5e3b044d898fe910f93d3ffd737c55d4b34e4ab
treef506ff1566a4807e97bedfb851cf8bbc760bd097
parent336a72eb946ce9427c0ae28fdc25a51ae829f728
Fix: sessiond: kernel: leak of notifier rule on failure to init notifier

Coverity reports:
1445768 Resource leak
The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In kernel_create_event_notifier_rule: Leak of memory or pointers to system resources (CWE-404)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ica3f414fb7640ecddf9affbcc359121b04a82277
src/bin/lttng-sessiond/kernel.c
This page took 0.032657 seconds and 4 git commands to generate.