[PATCH] mbimcli: use g_strfreev instead of g_free to free g_strsplit results
Ben Chan
benchan at chromium.org
Sun Feb 23 21:27:11 PST 2014
---
src/mbimcli/mbimcli-basic-connect.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mbimcli/mbimcli-basic-connect.c b/src/mbimcli/mbimcli-basic-connect.c
index 97368aa..9208d71 100644
--- a/src/mbimcli/mbimcli-basic-connect.c
+++ b/src/mbimcli/mbimcli-basic-connect.c
@@ -642,7 +642,7 @@ set_pin_input_parse (guint n_expected,
*pin = split[0];
*new_pin = split[1] ? split[1] : NULL;
- g_free (split);
+ g_strfreev (split);
return TRUE;
}
@@ -784,7 +784,7 @@ set_connect_activate_parse (const gchar *str,
}
}
- g_free (split);
+ g_strfreev (split);
return TRUE;
}
--
1.9.0.rc1.175.g0b1dcb5
More information about the libmbim-devel
mailing list