summaryrefslogtreecommitdiffstats
path: root/network/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'network/main.c')
-rw-r--r--network/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network/main.c b/network/main.c
index 2307a165..b81c111b 100644
--- a/network/main.c
+++ b/network/main.c
@@ -32,11 +32,10 @@
#include "plugin.h"
#include "manager.h"
-static DBusConnection *connection = NULL;
+static DBusConnection *connection;
static int network_init(void)
{
-
connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
if (connection == NULL)
return -EIO;
@@ -52,6 +51,7 @@ static int network_init(void)
static void network_exit(void)
{
network_manager_exit();
+
dbus_connection_unref(connection);
}