libnm: fix memleak for NMDeviceTun:hw-address

Fixes: 337304f19d
(cherry picked from commit 41ea9fffbb)
(cherry picked from commit 38890376fb)
This commit is contained in:
Thomas Haller 2019-02-19 08:42:19 +01:00
parent 3fb254fc82
commit be2da47a9d

View file

@ -268,6 +268,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);
}