live_viewer_connection_create(): fix leak on connection error
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 16 Aug 2019 00:21:33 +0000 (20:21 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 16 Aug 2019 16:35:04 +0000 (12:35 -0400)
commit2f767475601e3cdcb856e7d9e1f7a1f296383a36
tree6402e1e4fe58964cd0c600851b10d8f7372e0551
parentaa40512275e53808028ee2f3afa9d0f7a6b4db56
live_viewer_connection_create(): fix leak on connection error

g_free() is not enough here: the `url` member is not freed on error.
Just destroy the whole connection object cleanly.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I98184be066a9155e08d792d55fc4b8489a15bb30
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1946
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/lttng-live/viewer-connection.c
This page took 0.025493 seconds and 4 git commands to generate.