about summary refs log tree commit diff
path: root/libnm/nm-dns-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-dns-manager.c')
-rw-r--r--libnm/nm-dns-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-dns-manager.c b/libnm/nm-dns-manager.c
index f9ee332b..b833d0c6 100644
--- a/libnm/nm-dns-manager.c
+++ b/libnm/nm-dns-manager.c
@@ -313,9 +313,9 @@ demarshal_dns_configuration (NMObject *object, GParamSpec *pspec, GVariant *valu
 		                          vpn);
 		g_free (domains);
 		g_free (nameservers);
+		g_variant_unref (entry_var);
 		if (!entry) {
 			g_warning ("Ignoring invalid DNS entry");
-			g_variant_unref (entry_var);
 			continue;
 		}