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)
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>

No differences found
This page took 0.027001 seconds and 4 git commands to generate.