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>
Fri, 9 Aug 2019 15:28:43 +0000 (11:28 -0400)
commit2abe796968937298012c0ec668f7fc88305683f2
treeed53d5019b01b7a77fd230273f2470937a115264
parent35be817a5049575ed3169e12d840c44527a6f098
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.025278 seconds and 4 git commands to generate.