summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-02-19 08:42:19 +0100
committerThomas Haller <thaller@redhat.com>2019-02-19 09:33:05 +0100
commit41ea9fffbb49c4efbb3fa91e6cb2b4c5bcbf966f (patch)
tree385032a7de798cf907fa28abc839684b9dc60ef4
parent25a3825b51e6325be8275cc7edf150852709b5af (diff)
downloadNetworkManager-41ea9fffbb49c4efbb3fa91e6cb2b4c5bcbf966f.tar.gz
libnm: fix memleak for NMDeviceTun:hw-address
Fixes: 337304f19df43eaa6c76a7571094ccc9dc99a4c5
-rw-r--r--libnm/nm-device-tun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm/nm-device-tun.c b/libnm/nm-device-tun.c
index 166aa1dfb5..62460244a6 100644
--- a/libnm/nm-device-tun.c
+++ b/libnm/nm-device-tun.c
@@ -267,6 +267,7 @@ finalize (GObject *object)
NMDeviceTunPrivate *priv = NM_DEVICE_TUN_GET_PRIVATE (object);
g_free (priv->mode);
+ g_free (priv->hw_address);
G_OBJECT_CLASS (nm_device_tun_parent_class)->finalize (object);
}