Fix: bt_connection_get_*_port() must take a reference on port
[babeltrace.git] / lib / component / connection.c
index 8867e4f0d1dfae4f4cb7be44e5cdc9116376a136..f52840bca19bd70dc3fe2b965d58290e49781ecb 100644 (file)
@@ -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 *
This page took 0.023903 seconds and 4 git commands to generate.