summaryrefslogtreecommitdiff
path: root/libnm-glib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-20 11:28:14 +0100
committerThomas Haller <thaller@redhat.com>2017-03-20 11:28:58 +0100
commit3d8af94a0863c37450b37955743adfeae493a238 (patch)
tree5de52ae155c96273a479e8b24aebf849e8c43555 /libnm-glib
parentd2e2886de64192d4c2745a84bcb0e71b0733fdd8 (diff)
libnm: fix memleak of GUdevDevice in get_bus_name()
Diffstat (limited to 'libnm-glib')
-rw-r--r--libnm-glib/nm-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c
index b5575e390..626c84a97 100644
--- a/libnm-glib/nm-device.c
+++ b/libnm-glib/nm-device.c
@@ -1960,6 +1960,7 @@ get_bus_name (NMDevice *device)
*/
priv->bus_name = g_strdup ("");
}
+ g_object_unref (udevice);
out:
if (*priv->bus_name)