libnm,dhcp: use nm_clear_g_free() instead of nm_clear_pointer(, g_free)

This commit is contained in:
Thomas Haller 2020-04-27 12:54:14 +02:00
parent fc837cbb6f
commit 552aa962d7
2 changed files with 2 additions and 2 deletions

View file

@ -2500,7 +2500,7 @@ nm_utils_tc_qdisc_from_str (const char *str, GError **error)
break;
}
}
nm_clear_pointer (&rest, g_free);
nm_clear_g_free (&rest);
if (options) {
value = g_hash_table_lookup (options, "");

View file

@ -1461,7 +1461,7 @@ dispose (GObject *object)
{
NMDhcpNettoolsPrivate *priv = NM_DHCP_NETTOOLS_GET_PRIVATE (object);
nm_clear_pointer (&priv->lease_file, g_free);
nm_clear_g_free (&priv->lease_file);
nm_clear_g_source_inst (&priv->event_source);
nm_clear_pointer (&priv->lease, n_dhcp4_client_lease_unref);
nm_clear_pointer (&priv->probe, n_dhcp4_client_probe_free);