diff options
author | Thomas Haller <thaller@redhat.com> | 2022-05-10 21:35:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-05-16 16:37:44 +0200 |
commit | ea13cff76c9d5942f6ced41669297f77fea08a6a (patch) | |
tree | 6f8f1b7c37b46c12781498f2841709ac98f4eef7 | |
parent | 600467b96fd6c459839dcea44e5f5ac11a70b3e6 (diff) |
dhcp: assert that resources are freed in NMDhcpClient.dispose()
-rw-r--r-- | src/core/dhcp/nm-dhcp-client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/dhcp/nm-dhcp-client.c b/src/core/dhcp/nm-dhcp-client.c index d793aaed7a..390bb594bf 100644 --- a/src/core/dhcp/nm-dhcp-client.c +++ b/src/core/dhcp/nm-dhcp-client.c @@ -1206,6 +1206,10 @@ dispose(GObject *object) nm_clear_g_source_inst(&priv->ipv6_lladdr_timeout_source); nm_clear_pointer(&priv->effective_client_id, g_bytes_unref); + nm_assert(!priv->watch_source); + nm_assert(!priv->l3cd); + nm_assert(priv->l3cfg_notify.id == 0); + G_OBJECT_CLASS(nm_dhcp_client_parent_class)->dispose(object); } |