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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 29 May 2019 03:10:56 +0000 (23:10 -0400)
commit19bdff207149e8d07bfa141901b887b8d979896c
tree6e1060bba3abd4fbfe744b46362f3487dfec2b2e
parenteea66fe071c54a96dcc811c4d921e5b2b59feeb3
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.025683 seconds and 4 git commands to generate.