diff options
| author | Thomas Haller <thaller@redhat.com> | 2015-08-11 10:44:16 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2015-08-13 10:06:42 +0200 |
| commit | 68eec304e2d2b81da2cc0a2cd7afa3df7e35c407 (patch) | |
| tree | ddb5c618208bd0300a8b91527a01e991d397796c | |
| parent | 406b05a31a5ca0fb45173a69f9966e1ba6f3b28a (diff) | |
| download | NetworkManager-68eec304e2d2b81da2cc0a2cd7afa3df7e35c407.tar.gz | |
settings: don't leak keyfile plugin instance
We leaked a reference to the keyfile plugin and thus
it was not destructed on shutdown.
| -rw-r--r-- | src/settings/nm-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index a7b37d5a1a..54d378ec6a 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -682,7 +682,7 @@ find_plugin (GSList *list, const char *pname) static void add_keyfile_plugin (NMSettings *self) { - GObject *keyfile_plugin; + gs_unref_object GObject *keyfile_plugin = NULL; keyfile_plugin = nm_settings_keyfile_plugin_new (); g_assert (keyfile_plugin); |
