diff mbox series

[02/22] network: Remove g_strfreev use

Message ID 20240226033724.1460079-2-denkenz@gmail.com (mailing list archive)
State Superseded, archived
Headers show
Series [01/22] gprs: Remove g_strfreev and g_strdupv use | expand

Commit Message

Denis Kenzior Feb. 26, 2024, 3:36 a.m. UTC
Replace by l_strfreev
---
 src/network.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/network.c b/src/network.c
index 17cff7837a69..347861046e1a 100644
--- a/src/network.c
+++ b/src/network.c
@@ -127,14 +127,14 @@  static char **network_operator_technologies(struct network_operator_data *opd)
 			ntechs += 1;
 	}
 
-	techs = g_new0(char *, ntechs + 1);
+	techs = l_new(char *, ntechs + 1);
 	ntechs = 0;
 
 	for (i = 0; i < sizeof(opd->techs) * 8; i++) {
 		if (!(opd->techs & (1 << i)))
 			continue;
 
-		techs[ntechs++] = g_strdup(registration_tech_to_string(i));
+		techs[ntechs++] = l_strdup(registration_tech_to_string(i));
 	}
 
 	return techs;
@@ -345,7 +345,7 @@  static void set_network_operator_techs(struct network_operator_data *opd,
 					OFONO_NETWORK_REGISTRATION_INTERFACE,
 					"Technologies", DBUS_TYPE_STRING,
 					&technologies);
-	g_strfreev(technologies);
+	l_strfreev(technologies);
 }
 
 static char *get_operator_display_name(struct ofono_netreg *netreg)
@@ -553,7 +553,7 @@  static void append_operator_properties(struct network_operator_data *opd,
 						DBUS_TYPE_STRING,
 						&technologies);
 
-		g_strfreev(technologies);
+		l_strfreev(technologies);
 	}
 
 	if (opd->eons_info && opd->eons_info->info) {