Fix: sessiond: leak of trigger on registration error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Feb 2021 22:08:45 +0000 (17:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 Feb 2021 23:39:30 +0000 (18:39 -0500)
commit39b95a70bbb440eb42a548df21742f6ddebe0e2d
tree9f31dedc28752cb347ccb9a39a9b512c9792b5bd
parent124dda43f22f62524ec86e0db478810f8383ae64
Fix: sessiond: leak of trigger on registration error

The caller of cmd_register_trigger assumes that no triggers are returned
on error. This causes a leak of the reference to the returned trigger.

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