diff mbox series

[67/90] connection: Document call to 'connman_service_unref'.

Message ID 20231206235056.322578-71-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series Add Gateway Low-priority Default Routes for Non-default Services | expand

Commit Message

Grant Erickson Dec. 6, 2023, 11:50 p.m. UTC
This documents the call to 'connman_service_unref' to help point
readers or maintainers where its balancing retained reference is
located.
---
 src/connection.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/src/connection.c b/src/connection.c
index 90e6f9f9d6be..fddf0d5406e2 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2515,6 +2515,10 @@  static void remove_gateway(gpointer user_data)
 
 	gateway_config_free(data->ipv6_config);
 
+	/*
+	 * Release, and balance, the strong reference to the service
+	 * retained in #add_gateway.
+	 */
 	connman_service_unref(data->service);
 
 	g_free(data);