Fix: leak of consumer_output when using an explicit snapshot output
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 24 Jul 2019 21:07:00 +0000 (17:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:14 +0000 (16:39 -0400)
commitdade7378a69eaf7afaeb3857706f16c5a7024d4b
tree23ef39c84514e82a24218a6177fa5a82c24b253e
parente9b7c75317d46e1c4f8fb93afbb6ae6ed7672179
Fix: leak of consumer_output when using an explicit snapshot output

The consumer_output of a snapshot_output is leaked whenever a
snapshot is taken on a session that doesn't have pre-configured
snapshot outputs.

Steps to reproduce the leak:

$ lttng create --snapshot
$ lttng snapshot del-output 1
$ lttng enable-event -u -a
$ lttng start
$ lttng snapshot record /tmp/leak_it

This results in a leak of ~24kb/snapshot as reported by valgrind.

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