diff options
author | Thomas Haller <thaller@redhat.com> | 2018-04-13 10:30:07 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-13 10:34:42 +0200 |
commit | a92543d3b7c012bac98a3822dd6028cae64e67de (patch) | |
tree | 40920a23521b0fe4a31949e1d9b59ef94c2addb5 | |
parent | 26a8d2a1515b8cafd7f6d59d9b2c1642b23cd172 (diff) | |
download | NetworkManager-a92543d3b7c012bac98a3822dd6028cae64e67de.tar.gz |
settings: use cleanup-attribute in send_agent_owned_secrets()
-rw-r--r-- | src/settings/nm-settings.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index 6c66b22f1b..c92373f020 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -1135,7 +1135,7 @@ send_agent_owned_secrets (NMSettings *self, NMAuthSubject *subject) { NMSettingsPrivate *priv = NM_SETTINGS_GET_PRIVATE (self); - NMConnection *for_agent; + gs_unref_object NMConnection *for_agent = NULL; /* Dupe the connection so we can clear out non-agent-owned secrets, * as agent-owned secrets are the only ones we send back to be saved. @@ -1149,7 +1149,6 @@ send_agent_owned_secrets (NMSettings *self, nm_dbus_object_get_path (NM_DBUS_OBJECT (connection)), for_agent, subject); - g_object_unref (for_agent); } static void |