about summary refs log tree commit diff
path: root/libnm/nm-device-tun.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2019-03-12 15:13:33 +0100
committerSebastien Bacher <seb128@ubuntu.com>2019-03-12 15:13:33 +0100
commitdd428301eb6f02542015121d7b08d9997f137e50 (patch)
tree5530189f63510287d65268fc36025bdbc9414c00 /libnm/nm-device-tun.c
parentbbae86d3d2997a853ca0365e8eb7a3ca7489ee09 (diff)
New upstream version 1.15.91
Diffstat (limited to 'libnm/nm-device-tun.c')
-rw-r--r--libnm/nm-device-tun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnm/nm-device-tun.c b/libnm/nm-device-tun.c
index 2c88bf33..62460244 100644
--- a/libnm/nm-device-tun.c
+++ b/libnm/nm-device-tun.c
@@ -20,14 +20,13 @@
 
 #include "nm-default.h"
 
-#include <string.h>
+#include "nm-device-tun.h"
+
 #include <arpa/inet.h>
 
 #include "nm-setting-connection.h"
 #include "nm-setting-tun.h"
 #include "nm-utils.h"
-
-#include "nm-device-tun.h"
 #include "nm-object-private.h"
 
 G_DEFINE_TYPE (NMDeviceTun, nm_device_tun, NM_TYPE_DEVICE)
@@ -268,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);
 }