From: Jérémie Galarneau Date: Fri, 10 Mar 2017 19:29:15 +0000 (-0500) Subject: Fix: bt_connection_get_*_port() must take a reference on port X-Git-Tag: v2.0.0-pre1~444 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=823f2ffc1e86f861345838221792f15aba95cca2 Fix: bt_connection_get_*_port() must take a reference on port Signed-off-by: Jérémie Galarneau --- diff --git a/lib/component/connection.c b/lib/component/connection.c index 8867e4f0..f52840bc 100644 --- a/lib/component/connection.c +++ b/lib/component/connection.c @@ -81,13 +81,13 @@ end: struct bt_port *bt_connection_get_input_port( struct bt_connection *connection) { - return connection ? connection->input_port : NULL; + return connection ? bt_get(connection->input_port) : NULL; } struct bt_port *bt_connection_get_output_port( struct bt_connection *connection) { - return connection ? connection->output_port : NULL; + return connection ? bt_get(connection->output_port) : NULL; } struct bt_notification_iterator *