mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 21:30:10 +01: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)
|
||||
{
|
||||
if (val) {
|
||||
gs_free gpointer x_name = NULL;
|
||||
gs_free gpointer x_value = NULL;
|
||||
|
||||
x_name = (gpointer) g_steal_pointer(&val->name);
|
||||
x_value = g_steal_pointer(&val->value_ptr);
|
||||
nm_clear_g_free(&val->name_mutable);
|
||||
nm_clear_g_free(&val->value_ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue