summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-03 11:03:01 +0200
committerThomas Haller <thaller@redhat.com>2019-05-03 11:03:08 +0200
commit56d748eb8436994f131c5693a282a008f7b98a18 (patch)
treec86c6533a6a4c5b1b068653c3f921711ec6f15d0
parentd5a2b70909e6d9158336cc45f96f297543463b61 (diff)
downloadNetworkManager-56d748eb8436994f131c5693a282a008f7b98a18.tar.gz
device/wireguard: fix memleak for NMDeviceWireGuard
Fixes: 2148d0948202 ('core/wireguard: add support for WireGuard peers')
-rw-r--r--src/devices/nm-device-wireguard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/nm-device-wireguard.c b/src/devices/nm-device-wireguard.c
index f8c7d1c35c..b53c6802db 100644
--- a/src/devices/nm-device-wireguard.c
+++ b/src/devices/nm-device-wireguard.c
@@ -1589,6 +1589,8 @@ finalize (GObject *object)
g_object_unref (priv->dns_manager);
}
+ g_hash_table_destroy (priv->peers);
+
G_OBJECT_CLASS (nm_device_wireguard_parent_class)->finalize (object);
}