mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 07:18:03 +02:00
glib-aux: cleanup nm_utils_named_value_clear_with_g_free() implementation
(cherry picked from commit 42ba464380)
This commit is contained in:
parent
2fe9d99fc0
commit
cc5a0f517e
1 changed files with 2 additions and 5 deletions
|
|
@ -3244,11 +3244,8 @@ void
|
||||||
nm_utils_named_value_clear_with_g_free(NMUtilsNamedValue *val)
|
nm_utils_named_value_clear_with_g_free(NMUtilsNamedValue *val)
|
||||||
{
|
{
|
||||||
if (val) {
|
if (val) {
|
||||||
gs_free gpointer x_name = NULL;
|
nm_clear_g_free(&val->name_mutable);
|
||||||
gs_free gpointer x_value = NULL;
|
nm_clear_g_free(&val->value_ptr);
|
||||||
|
|
||||||
x_name = (gpointer) g_steal_pointer(&val->name);
|
|
||||||
x_value = g_steal_pointer(&val->value_ptr);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue