mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 13:20:08 +01:00
settings: fix leaked connection when deleting secrets
This commit is contained in:
parent
512a0f827a
commit
e39449caef
1 changed files with 1 additions and 0 deletions
|
|
@ -564,6 +564,7 @@ do_delete (NMSettingsConnection *connection,
|
|||
for_agents = nm_connection_duplicate (NM_CONNECTION (connection));
|
||||
nm_connection_clear_secrets (for_agents);
|
||||
nm_agent_manager_delete_secrets (priv->agent_mgr, for_agents, FALSE, 0);
|
||||
g_object_unref (for_agents);
|
||||
|
||||
/* Remove timestamp from timestamps database file */
|
||||
remove_entry_from_db (connection, "timestamps");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue