mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 17:30:16 +01:00
settings: use slice allocator for UpdateInfo data
(cherry picked from commit 6ab0ff8a7c)
This commit is contained in:
parent
d0039b5521
commit
64af67b90f
1 changed files with 2 additions and 3 deletions
|
|
@ -1638,8 +1638,7 @@ update_complete (NMSettingsConnection *self,
|
|||
g_clear_object (&info->agent_mgr);
|
||||
g_clear_object (&info->new_settings);
|
||||
g_free (info->audit_args);
|
||||
memset (info, 0, sizeof (*info));
|
||||
g_free (info);
|
||||
g_slice_free (UpdateInfo, info);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -1814,7 +1813,7 @@ settings_connection_update_helper (NMSettingsConnection *self,
|
|||
goto error;
|
||||
}
|
||||
|
||||
info = g_malloc0 (sizeof (*info));
|
||||
info = g_slice_new0 (UpdateInfo);
|
||||
info->context = context;
|
||||
info->agent_mgr = g_object_ref (priv->agent_mgr);
|
||||
info->subject = subject;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue