Fix: src.ctf.lttng-live: possible memory leak on error path
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 15 May 2019 19:43:44 +0000 (15:43 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 May 2019 20:53:02 +0000 (16:53 -0400)
commit059e394034f95701ecf2fe7fe43911bdf038bf97
treedd75f934aeb8b8aa67f88c01f80a9c97a9363bab
parentcd6d1a172ffa6eb01ce6d445f9d1dca2dc00f1cf
Fix: src.ctf.lttng-live: possible memory leak on error path

Free `struct lttng_live_component` if the graph is found to be already
canceled and return the appropriate _END status.

Reported-by: scan-build - Potential leak of memory.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I975e458ed4ce5dc3e50c9bf330a2f6953e5be535
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1308
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
plugins/ctf/lttng-live/lttng-live.c
This page took 0.026653 seconds and 4 git commands to generate.