summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-13 21:31:46 +0100
committerThomas Haller <thaller@redhat.com>2015-03-19 15:51:07 +0100
commita81524582fdcb8ac9dd65a215b338a64d63bed9b (patch)
tree1765d79707d05b31073ee394fb4b184a3499795a
parent4ffd74e8efc8060c7e4b0c5eed95f9b2e4cbcdf4 (diff)
downloadNetworkManager-a81524582fdcb8ac9dd65a215b338a64d63bed9b.tar.gz
main: don't unref config instance at end of main()
config is a singleton implemented using NM_DEFINE_SINGLETON_DESTRUCTOR(). No need to unref it manually.
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d76bbffa3b..0e9e923dcd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -215,7 +215,7 @@ main (int argc, char *argv[])
gboolean success, show_version = FALSE;
NMManager *manager = NULL;
gs_unref_object NMSettings *settings = NULL;
- gs_unref_object NMConfig *config = NULL;
+ NMConfig *config;
GError *error = NULL;
gboolean wrote_pidfile = FALSE;
char *bad_domains = NULL;